apply_react {packer} | R Documentation |
Apply React
Description
Apply React to a project, adds the relevant (babel) loader, installs dependencies,
and creates, updates, or replaces the srcjs/index.js
file.
Usage
apply_react(use_cdn = TRUE)
Arguments
use_cdn |
Whether to use the CDN for |
Details
After running this function and bundling the JavaScript remember to place
the code printed by the function in shiny UI. By default apply_react()
does not
bundle react
and react-dom
and thus requires using reactCDN()
to import the
dependencies in the shiny application: this function is created in a R/react_cdn.R
.
[Package packer version 0.1.3 Index]