![]() So as you can see we're using the instead of the regular tag to prevent the refresh of the page. So the 1st page we'll see if we run yarn start is the Home Page We Have two routes Here the " /"(Home) Route and the " /profile"(Profile) route. You can manage Global State using two main paths:ģrd one is basically when you click on a link(to component), you passing data with that.īelow we Have a simple React App with some routes The 1st one is by passing some props from the parent component to the children componentsĢnd one is by making a Global State and make some data accessible by many components. So 1st of all we'll discuss how we can pass data between components in React. ![]() ![]() If you've used React Router on many projects, definitely you've asked How i can pass some data or state to other components through a link tag?.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |