When data is transported between distinct areas of a program, it can only go in one direction, which is known as unidirectional data flow.
React, a JavaScript library, uses unidirectional data flow. The data from the parent is known as props. You can only transfer data from parent to child and not vice versa.
This means that the child components are unable to update or alter the data on their own, ensuring a clean data flow architecture. This also implies you have more control over the data flow.
#reactjs #data #javascript
Ещё видео!