1.0.1 • Published 9 years ago

react-sinatra-ujs v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

react-sinatra-ujs

react-sinatra-ujs mounts components built with webpack.

This is for react-sinatra

Install

npm i --save react-sinatra-ujs

Usage

Renders react component in your views

Add your react component in your views by using the react_component helper.

<%= react_component('CommentBox', name: 'namusyaka') %>

Mount webpack bundled components

import { mountComponents } from './react-sinatra-ujs';

import { CommentBox } from './components/CommentBox';

mountComponents({ CommentBox });

License

The package is available as open source under the terms of the MIT License.

1.0.1

9 years ago

1.0.0

9 years ago