react-wayfarer
A naive little router build with wayfarer (492 bytes gzipped)
Table of Contents
Install
This project uses node and npm.
$ npm install react-wayfarer$ # OR $ yarn add react-wayfarer
Usage
;;; const PageOne = <h2> Page 1 <a href="/fooper">go to</a> </h2>;const PageTwo = <h2>Page 2 has the name propsparamsname</h2>; { return <Router> <PageOne path="/" /> <PageTwo path="/:name" /> </Router> ;} const rootElement = document;ReactDOM;
Contribute
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
MIT