September 2017
Intermediate to advanced
216 pages
6h 8m
English
For lack of a better name, we'll call this component App(). In essence, it is the app since it holds all of the application state and all of the side-effects that control what the user sees. To start, we have to pass the component the initial state of our application. The initial state is used by side-effects to perform the initial render. Then, once the user starts interacting with the UI, we can change the initial state.
We could pass the initial state into the component like this:
App(Map.of( 'first', '', 'last', '', 'age', 0));
The application state, in this case, is represented by a map with three key-value pairs. The values are two empty strings and an age of zero, which probably isn't very meaningful to the user. It doesn't ...
Read now
Unlock full access