gaearon / react-hot-boilerplate

Minimal live-editing example for React
MIT License
3.91k stars 879 forks source link

add Routing #140

Closed ir3ne closed 6 years ago

ir3ne commented 6 years ago

I added a Router component with the exact path on App and a NotFound component in other paths.

theKashey commented 6 years ago

Does this sounds a bit obsolete? Half packages nowadays require React 16+ stuff, while this boilerplate still uses 0.14

ir3ne commented 6 years ago

@theKashey Yes you're right, it's a React obsolete version. I'm studying and I would like to ask to you if do you think the router solution is also obsolete. Thanks

theKashey commented 6 years ago

react-router v4 is quite modern, but as long nobody tests their libraries agains React v14 - everything (probably) would be broken.

ir3ne commented 6 years ago

ok I understand. Thank you :)