I saw some demo in web and found the Route component has two props to define the componet name when path matched.
some of them use _handler_ and others use _component_.
Just like this
<Route path="home" name="home" handler={Home} />
// or
<Route path="home" name="home" component={Home} />
which one is correct?
I saw the docs. Buy no mention.
THK.
handler is deprecated in v1.0, you should use component.
Thanks for your question!
We want to make sure that the GitHub issue tracker remains the best place to track bug reports and feature requests that affect the development of React Router.
Questions like yours deserve a purpose-built Q&A forum. Could you post this question to Stack Overflow with the tag #react-router? https://stackoverflow.com/questions/ask?tags=react-router.
We also have an active and helpful React Router community on Reactiflux, which is a great place to get fast help with React Router and with the rest of the React ecosystem. You can join at https://discord.gg/0ZcbPKXt5bYaNQ46.
Most helpful comment
handleris deprecated in v1.0, you should usecomponent.