last day (16 days later) » 

12:29 PM
0
A: How to link buttons in header to a different page via passing props in react?

keikaiYou can use a component named Link provided by react-router-dom Here is an example of how to use it on third party lib's button component. You can check the document to find out the best implement method for your demand. <Route path="/YourURL" component={YourComponent} /> import { Link } from...

 
After doing this the button still does not link to the page, the button still does nothing
 
@DeepHarquissandas Could you make it an online demo? Cause we use this in our prod mode with normal functionality.
 
I could try, how would I use react on an online demo
 
@DeepHarquissandas Something like codesandbox, codesandbox.io/s
 
Yes, that is what I am doing
codesandbox.io/s/spring-breeze-v273hm, this should have my code simplified to work on the sandbox, just need to pass what is in the textbox into the search page
 
12:29 PM
404, can you help me check it? You may need to save it once.
 
Ok, Let me check
Now you could try, I have saved it
 
If the project is private, others can't see
Build a minimal reproducible example is preferred
 
It is public
It should be as minimal as it gets, only the necessary code is there
 
12:50 PM
Share via right-top button
I still got 404
 
1:45 PM
Does that one work?
 
 
2 hours later…
3:38 PM
Yes! I will take a look
 
3:52 PM
Updated, kindly check it would be appreciated
And for correct header usage, check my demo github.com/ibarapascal/netweather
 
 
2 hours later…
6:03 PM
Thank you
It does not work for me, nothing has changed
 

  last day (16 days later) »