This section assumes you have installed StateX and React. See the Getting Started page for how to get started with StateX and React from scratch.
In this example, we'll cover atoms, selectors, and the hooks exposed by the StateX API. We'll also cover some advanced options used with atoms.
Try entering your first name and watch all other fields, last name, full name, full name count (async), full JSON view auto populate with what you enter and scoll below for the code walkthrough on how this form is built. Click Demo to scroll the below demo in to full view.
Note that the text typed in the first name gets transformed to uppercase and at the same time get's copied to last name in lowercase. This is achived by using the updater option of atom.
Full Name is derived using a selector. Note that we access firstName & lastName using the get function that is passed as an option to the selector's get function.