The question is
I have a list in my 'Home Page' and there is another 'Add User' page
So when I add a user on my 'Add User' page using a button, Then how can I show the list of users on my 'Home Page' using map function.
It's like using a button a add something on one page and then show that thing on another page.
For example if add a name using input field and that things is added to list but I want to show that list on a different page not on the one I used to add it
Hey I want to ask something if you don't mind
yes @shubhamtiwari909
The question is
I have a list in my 'Home Page' and there is another 'Add User' page
So when I add a user on my 'Add User' page using a button, Then how can I show the list of users on my 'Home Page' using map function.
It's like using a button a add something on one page and then show that thing on another page.
I want the logic and some help
For example if add a name using input field and that things is added to list but I want to show that list on a different page not on the one I used to add it
You can try two things
i would say react context will be the better option
refer this for
context
kentcdodds.com/blog/how-to-use-rea...this is basic example : daveceddia.com/usecontext-hook/
Thank you I get the concept
I will try to implement it for my project hope it may work