React - Data flow and rerendering

While interacting with more complexed applications, the user will update their state. The application then should adjust to the changes and show the updated UI.

To create working, more complexed applications, you need to be able to control data flow and rerendering using a few simple strategies.

Render lists

I know how to properly render list of children. I do not forget about providing keys to the children and I know that if possible, they should not rely on the index of the element in the array

React.Fragment

I know that I can use Fragment to group elements. I know that it can be used to return multiple elements from render function when no parent element is present.

I know that the difference between Fragment and its short version <> is ability to pass key

Reconciliation algorythm

I know the basic idea of the reconciliation algorythm to understand the update process of virtual DOM that is happening under the hood. That way I know why key keyword is so important from the performance and lifecycle point of view for both lists and optionally rendered children components

Update child from parent

I know that I can use props that are passed to the children components to update their content. I know that parent can control state and update its children

Update parent from children

I know that I can create callback function and pass them to child component. It can be then used to update parent's state. I understand that it can also influence props that the parent component will passed after update

Icon of React
Icon of Data flow and rerendering
React skill
core
Data flow and rerendering
Ready to learn
Required technologies

I know how to properly render list of children. I do not forget about providing keys to the children and I know that if possible, they should not rely on the index of the element in the array

I know that I can use Fragment to group elements. I know that it can be used to return multiple elements from render function when no parent element is present.

I know that the difference between Fragment and its short version <> is ability to pass key

I know the basic idea of the reconciliation algorythm to understand the update process of virtual DOM that is happening under the hood. That way I know why key keyword is so important from the performance and lifecycle point of view for both lists and optionally rendered children components

I know that I can use props that are passed to the children components to update their content. I know that parent can control state and update its children

I know that I can create callback function and pass them to child component. It can be then used to update parent's state. I understand that it can also influence props that the parent component will passed after update

Close
Loading content