简体   繁体   中英

How to transfer data without using props between components in reactjs?

Hi Stack overflow users, As i am working in the reactjs from several days , one question is there in my mind like is there a way /ways to transfer data between components in react.js and even at some time i thought like how the one way data binding gives high performance in react and how virtual DOM updated the real DOM internally? I request some one to help me regarding this?

you can use global context API for this take a look at this

or use REDUX for that 在此处输入图片说明 it helps you to pass states to children in level two, three and more ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM