Many times, in react, state information is used by multiple components. Information in React is usually shared using props. We use it for this purpose as well. To resolve such situations, we define that data/function at a common parent component and ...

Markdown supported · ⌘↵ to post
No responses yet.