React Native Paris #3 chez ContentSquare


Details
Programme :
> David Leuliette - Universal Application with React Native
React Native: Learn once, write anywhere. We all have a love-hate relationship with this promise. Building software for multiple platforms is not an easy task, and real-world apps hit the wall of reality when it comes to creating astonishing UX. Styling is hard, navigation is chaos, and state management is complex, and a monorepo is another world. Let's dig into all of these topics to ship an application that is available anywhere.
> Charlotte Isambert - You can’t use hooks conditionally… or can you?
It’s the hooks rule number one: “Only call hooks at the top level”.
But what if I told you that this rule is not true for every hook? One of them can actually safely be used conditionally.
To understand how useContext is different from other hooks, and why it is exempted from this major rule, we need to know why this rule exists in the first place. We will build our own mental model of react’s rendering behavior focused on how react keeps track of data at runtime: props, states, refs… and context values.

React Native Paris #3 chez ContentSquare