react_on_rails

example of server rendering

Usage no npm install needed!

<script type="module">
  import reactOnRails from 'https://cdn.skypack.dev/react_on_rails';
</script>

README

Using NPM for react_on_rails

  • Use 'npm link' to hook up the spec/dummy/client/node_modules to the top level
  • Be sure to install npm dependencies in spec/dummy/client

Setup npm link

cd react_on_rails
npm link
cd spec/dummy/client
npm link react_on_rails

Run npm i if not done yet

cd react_on_rails
npm run dummy:install 

Starting the spec/dummy

npm run local