Wordpress API Universal React Renderer
Note: This is currently a work in progress and will likely undergo major public/private API changes and feature updates.
npm install tapestry-wp --save
Map the Tapestry commands to
npm scripts in your
"scripts":"start": "tapestry""start:prod": "tapestry build && tapestry start""bootstrap": "tapestry init"
You can now either run
npm run bootstrap to create a simple Tapestry project or manually add a
tapestry.config.js to your project root.
components:Post PagesiteUrl: ''
siteUrl: The Wordpress instance to access the WP-API. e.g.
components: An object with React components mapped to Wordpress endpoints. e.g.
loaders: An optional object with data loading functions matching components.
proxyPaths: An array of paths to allow proxy access e.g.
host: The host Tapestry is assigned to. e.g.
port: The port Tapestry is assigned to. e.g.
onPageUpdate: A function called on React-router
Tapestry has a long list of features that we are looking to implement, including confirmed and super speculative features.