0.3.2 • Published 6 years ago
@reframe/react-router v0.3.2
Reframe + React Router v4 = :heart:
@reframe/react-router
Use React Router's components.
Usage
Add @reframe/react-router
to your reframe.config.js
:
module.exports = {
$plugins: [
require('@reframe/react-kit'),
require('@reframe/react-router') // npm install @reframe/react-router
]
};
Example
// /plugins/react-router/example/reframe.config.js
module.exports = {
$plugins: [
require('@reframe/react-kit'),
require('@reframe/react-router') // npm install @reframe/react-router
]
};
// /plugins/react-router/example/pages/spa-page.config.js
import React from 'react';
import {Link, Route} from "react-router-dom";
const App = () => (
<div>
<ul>
<li>
<Link to="/">Home</Link>
</li>
<li>
<Link to="/about">About</Link>
</li>
</ul>
<hr />
<Route exact path="/" component={Home} />
<Route path="/about" component={About} />
</div>
);
const Home = () => (
<div>
<h2>Home</h2>
</div>
);
const About = () => (
<div>
<h2>About</h2>
</div>
);
const pageConfig = {
route: '/:params*',
view: App,
};
export default pageConfig;
0.3.2
6 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.1.14
7 years ago
0.1.13
7 years ago
0.1.13-next.0
7 years ago
0.1.12
7 years ago
0.1.12-next.0
7 years ago
0.1.11
7 years ago
0.1.10
7 years ago
0.1.9
7 years ago
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.0.1-rc.21
7 years ago
0.0.1-rc.20
7 years ago
0.0.1-rc.19
7 years ago
0.0.1-rc.18
7 years ago
0.0.1-rc.17
7 years ago
0.0.1-rc.16
7 years ago
0.0.1-rc.15
7 years ago
0.0.1-rc.14
7 years ago
0.0.1-rc.13
7 years ago
0.0.1-rc.12
7 years ago
0.0.1-rc.11
7 years ago
0.0.1-rc.10
7 years ago
0.0.1-rc.9
7 years ago
0.0.1-rc.8
7 years ago
0.0.1-rc.7
7 years ago
0.0.1-rc.5
7 years ago
0.0.1-rc.4
7 years ago
0.0.1-rc.3
7 years ago
0.0.1-rc.2
7 years ago