create-react-app-blog
v1.0.0
Published
create-react-app plugin for a Jekyll style Markdown blog, depends on react, react-router@v3, and react-helmet@v4
Downloads
5
Readme
create-react-app
blog
A create-react-app plugin for a Jekyll style Markdown blog. Dependencies are injected (react, [email protected], [email protected]) and thus must be installed on their own.
Prerequisites (dependencies)
(create a clean new create-react-app
so you can understand how it works before importing it into your own project)
npm install -g [email protected]
create-react-app react-blog
cd react-blog
npm install --save --save-exact [email protected]
npm install --save [email protected] [email protected] [email protected] [email protected]
Usage
1 mkdir src/_posts
2. touch src/_posts/2016-10-20-hello-world.md
3. npm start
4. ```javascript
import React from 'react';
import { IndexRoute, Link, Router, Route, browserHistory } from 'react-router';
import Helmet from 'react-helmet';
import createReactAppBlog from './create-react-app-blog';
<Router history={browserHistory}>
<Route path="/blog">{createReactAppBlog(React, IndexRoute, Link, Route, Helmet)}</Route>
</Router>
```