Alexander Lemkin Functional React
Who am I?
Your worst nightmare…
Or more likely, a good friend here to help you move on
What are we talking about and why?
- Code is easier to read and understand - No context needed - Easier to test - Increased performance - Debugging and extension is easier - More reusable
How much do you already know?
What is functional programming and composition?
Functional: Compute outcomes by evaluating functions through pure input and output, avoiding mutation of data. Composition: Combining two or more functions in sequence to return a new function. Use compose method from redux to use this, or use one from any number of functional libraries, or build your own small one. I was using recompose, now hooks cover all the essentials.
What state management am I using, and what is the layout of my components?
What are hooks and how do they work?
A way to natively use state and lifecycle without the need for classes
What does the code actually look like. Github What does the code actually look like? Github.com/alemkin – react-redux-boilerplate
What are hooks missing?
- A way to use it with composition, natively - A few niche lifecycle hooks that the React team is working on.
Questions?
Session Evaluations are ONLINE ONLY Your feedback is valuable! SQLSatBR.com/Sessions/SessionEvaluation.aspx