React WP Content Loader
(NOTICE: This is still at its early development stage)
What does this do?
It uses WordPress.com's REST API to get information of a WordPress Post and renders the content on the app that uses this react-wp-content-loader
module.
How to install it as a dependency?
- in
package.json
of your app, add"react-wp-content-loader": "git://github.com/mmmavis/react-wp-content-loader.git"
as thedependencies
For example,
"name": "name-of-your-app" "dependencies": ... "react-wp-content-loader": "git://github.com/mmmavis/react-wp-content-loader.git" ...
- run
npm install react-wp-content-loader
How to use it?
require
(orimport
) the this module, and make sure you pass the 2 requiredprop
wpUrl
andwpPostSlug
to the React component.
For example,
var React = ;var WpContentLoader = ; var Homepage = React; moduleexports = Homepage;