DEV Community

Discussion on: Passing State to Components Rendered by React Router (and Other Fun Things)

Collapse
sesrikanth profile image
sesrikanth • Edited

Hi, now after doing '1. Passing the whole dang state', how do i update the state (of App component in App.js) from Homepage component (launched using BrowserRouter) ?

edited: I have to pass the update functions as another prop just like passing state as prop.