Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The two transitions - one for each direction (into and out of the LoginState), declare the use of the Fade effect to make the components in the LoginState fade in and out. Just the presence of the transitions and their connections to the states is enough to hook things together. The application just changes the currentState to LoginState or NormalState to make the login dialog appear and disappear.

Summary

States and transitions can easily enhance your application's experience. For a complex example, look at the FlexJS Store demo that is packaged under "examples" with the FlexJS SDK.

Summary

While ReactJS is a new, powerful, and clever way to make browser-based applications, you are still left with developing and debugging JavaScript. While JSX adds more checking to your ReactJS source code, having a true compiler, with syntax and type checking, can save you a lot of time during development as well as improving the quality of the delivered code.Add more here