Simply React
One of the things I love about React is how easy it is to encapsulate UI code into a component. I love this because it makes reuse of those components easy. But is it simple? I've made my fair share of components that had to accept a bunch of props to handle a growing list of different use cases resulting in a complex render function full of conditional statements and a confusing API for people using this "reusable" component. Eventually it becomes too much and I had to make a new version of the same component to handle slightly different use cases. Lots of code/bug duplication there because my reusable component wasn't reusable enough. It wasn't simple enough.
There are patterns that have emerged in React that allow you to promote code reuse without sacrificing the simplicity or flexibility of the component. In this talk we’ll cover some of these patterns that will make your React components more useful.
EVENT:
Chain React 2018
SPEAKER:
Kent C. Dodds
PERMISSIONS:
Conference Organizer provided Coding Tech with the permission to republish this video. The video is reposted with permissions of Infinite Red. Check out their web-site at https://infinite.red. Infinite Red is the development studio that specializes in web and mobile design and development in React Native, Elixir, Phoenix, and Ruby on Rails.
CREDITS:
Original video source: https://www.youtube.com/watch?v=M9X2qGddHkU
Other Videos By Coding Tech
2018-08-21 | Cryptography 101 |
2018-08-19 | Easing into Modern C++ (7 Features of C++ You Can Adopt Today) |
2018-08-19 | How We Do Cross Platform |
2018-08-17 | State of VueJS 2018 by the Creator of VueJS |
2018-08-16 | Deep Neural Networks with PyTorch || Stefan Otte |
2018-08-14 | Modern JavaScript: Moving Beyond jQuery |
2018-08-13 | Blurring the Line Between Native and Web |
2018-08-13 | UX in Motion |
2018-08-12 | The Art of the Side Hustle |
2018-08-11 | Build a Reactive Flutter App |
2018-08-09 | Simply React |
2018-08-08 | Prototyping With Code |
2018-08-07 | Let's SQL Like It's 1992 || James Powell |
2018-08-06 | Turning Google Earth into SimCity 2000 |
2018-08-05 | Interactive Visualizations in JupyterLab and PixiJS || Jeremy Tuloup |
2018-08-04 | Creating an Arabic Programming Language |
2018-08-03 | Web Animations APIs |
2018-08-03 | WRITING BOTS FOR GITHUB |
2018-08-01 | Storytelling With Traceroute! |
2018-07-31 | Python Generators || James Powell |
2018-07-30 | PWA and Offline Development |