Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Data Down Action Up React

In React, Unidirectional data flow describes a one-way data flow where 
the data can move in only one pathway when being transferred between 
different parts of the program.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 cannot update 
or modify the data on their own, makeing sure that a clean data flow 
architecture is followed. This also means that you can control 
the data flow better.

React Components act with: Data Down, Action Up

Data Down:
The first and more simple concept, “data down,” refers to the passing 
of data and/or functions via props from parent to child components. 
These props are passed down when a child component gets created. 
We pass data down to child components so they can render them 
on to the DOM.

Action Up:
Action Up refers to sending data back up to the parent from the child 
component with the help of some action or event. Often these actions 
are connected to a callback function.
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to create a cookie in javascript 
Javascript :: convert int to timestanp js 
Javascript :: javascript on uncaught exception 
Javascript :: how to create a filelist object in javascript 
Javascript :: react electron boilerplate 
Javascript :: javascript replace with UpperCase 
Javascript :: javascript if and statement 
Javascript :: javascript ternary operator 
Javascript :: Orderby on multiple columns using typeorm 
Javascript :: exist element js 
Javascript :: axios check 401 run function 
Javascript :: set datatable with jquery success return value 
Javascript :: How to Close a React Native Modal with a Button 
Javascript :: javascript return multiple values from a function 
Javascript :: CocoaPods could not find compatible versions for pod "React/Core": In Podfile: react-native-fetch-blob (from `../node_modules/react-native-fetch-blob`) was resolved to 0.10.6, which depends on React/Cor 
Javascript :: useroutematch 
Javascript :: js map object to array 
Javascript :: js seconds to time 
Javascript :: first N elements of an array javascript 
Javascript :: js json parse 
Javascript :: Capitalize first letter of string on json sending 
Javascript :: set lodash 
Javascript :: json to formdata 
Javascript :: nodejs download file 
Javascript :: get array of selected options from select element 
Javascript :: react native meter 
Javascript :: java object to json 
Javascript :: How to Submit Forms and Save Data with React.js 
Javascript :: update to node 12 mac 
Javascript :: js months ago 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =