Who am I?
Front End Developer at Schibsted Spain.
More than 10 years of experience, last 7 at big companies in the Barcelona area.
What's this session about?
Interaction between components
So, that's in fact...
UI interaction
In summary, we'll review:
- Communication between components
- Stateful and stateless components
- Form controls
- Lists
...needs multiple components
Composability
Separation of concerns
Data flow
How do components communicate?
Parent-child communication:
Passing props
Child-parent communication:
Passing handlers as props in order to get child component information in the parent when such handlers are executed
Communication between two independent components:
Subscribers (e.g.: Flux, Alt or Redux)
Forms are controlled via interactive props:
Form state is updated via events:
onChange
onInput
onSubmit
Stateful components own data, so that they can make UI interact
Stateless components just render data
Dynamic children are the key
Routing library for React that keeps our UI in sync with the URL
One Router
, multiple Route
We can Redirect
and also navigate through Link
T.Hanks!