React reconciliation: how it works and why should we care
Looking in detail into how React reconciliation algorithm works. Explore in the process quirks of conditional rendering, the ’key’ attribute, and why we shouldn’t declare components inside other components.
The video includes:
* The mystery of conditional rendering
* Exploring how Reconciliation works by walking through the mystery and the solutions
* The “key“ attribute, what is its purpose in the algorithm, and how to make use of it outside of dynamic lists
* Declaring components inside other components: why it’s a bad practice and how React behaves when it sees code like this
👩🏼💻 Code examples for the video:
* The mystery of conditional rendering:
* How to fix it with re-positioning:
* Dynamic arrays and keys:
* How to fix the mystery with keys:
* How to force re-use of inputs with the same key:
Useful articles to read on the topic:
📍 React reconciliation: how it works and why should we care:
📍 React key attribute: best practices for performant lists:
Social links:
⃗💬 Twitter:
💬 Linkedin:
#react #reactjs #webdevelopment #programming #frontend #frontenddeveloper
14 views
235
56
3 months ago 00:08:53 1
’HE CAN SING THE PHONEBOOK!’ My Girlfriend’s First TIME REACTION to JOURNEY - Open Arms
8 months ago 00:24:56 1
Therapist Reacts to BRAVE
8 months ago 00:11:53 1
React Reconciliation
1 year ago 00:15:18 14
React reconciliation: how it works and why should we care
2 years ago 00:15:25 1
How Does React Actually Work? Deep Dive #1
2 years ago 00:53:29 1
[доклад] Подробно о React Reconciliation, или Как React добился 60 fps
2 years ago 00:02:23 1
‘It’s really sad’: Brits react to Prince Harry explosive memoir
3 years ago 00:53:29 1
React Reconciliation, или Как React добился 60 fps / Александр Бальцевич