A sample app showing how to use spice-app-react to blend React with existing static HTML markup.
Live version: https://spice-app-react-intro.surge.sh
Following will start the local webserver and open the default browser:
$ npm install
$ npm start
$ npm run build
Contents of build
folder can be deployed to any static hosting provider.
App is based on create-react-app:
$ npx create-react-app spice-app-react-intro --use-npm
$ cd spice-app-react-intro
$ rm src/*
$ rm public/manifest.json
$ npm i spice-app-react
Then customize (see source code for the actual code):
public/index.html
- static site designsrc/index.js
- useSpice.blend(...)
instead ofReactDOM.render(...)
src/App.js
- application logic, blending with elements already on the page
- Lev Gimelfarb - Initial work - @gimelfarb
See also the list of contributors who participated in this project.
This project is licensed under the ISC License - see the LICENSE.md file for details
- Bulma - Awesome modern CSS framework based on Flexbox
Also, thanks @PurpleBooth, for the README template!