I recently found the example code on l-state section is not working so I try to figure out it by reading the source code, looks like it changed.

After looking at this repo the .md file actually shows the right code, so I guess the docs website is not updated to the latest build.