Example of a Shiny app with a React front-end
git clone https://github.com/glin/shiny-react-example
cd shiny-react-example
npm install
-
Build the React app with auto-reloading on UI file changes (refresh to see changes):
npm run watch
-
Run the Shiny app with auto-reloading on R file changes:
npm start
Or in your R console:
source("dev.R")
-
Build the React app:
npm run build
-
Publish the Shiny app with the
dist/
directory included.