| apply_react | R Documentation |
Apply React to a project, adds the relevant (babel) loader, installs dependencies,
and creates, updates, or replaces the srcjs/index.js file.
apply_react(use_cdn = TRUE)
use_cdn |
Whether to use the CDN for |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.