docpad-plugin-react
DocPad plugin that adds the ability to render React Components
Last updated 6 years ago by chrishale .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install docpad-plugin-react 
SYNC missed versions from official npm registry.

React Plugin for DocPad

Build Status NPM version

This plugin pre-renders React components from js or jsx files during the site generation.

<%- @react('./files/components/App.jsx') %>

NOTE: path is relative to docpad's srcPath.

This should also work with webpack style loaders (as long as you define the loader at the point of requiring in your js). For example:

var svg = require('url?mimetype=image/svg+xml!./example.svg');

You will also need to have the loaders as dependencies in your sites package.json

Install

npm install docpad-plugin-react

License

Licensed under the incredibly permissive MIT License
Copyright © 2014 Chris Hale

Current Tags

  • 2.0.3                                ...           latest (6 years ago)

3 Versions

  • 2.0.3                                ...           6 years ago
  • 2.0.2                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |