inst/doc/intro_reactR.R

## -----------------------------------------------------------------------------
library(reactR)
library(htmltools)

attachDependencies(
  tags$script(
  "
    ReactDOM.render(
      React.createElement(
        'h1',
        null,
        'Powered by React'
      ),
      document.getElementById('react-heading-here')
    )
  "
  ),
  html_dependency_react()
)

Try the reactR package in your browser

Any scripts or data that you put into this service are public.

reactR documentation built on Oct. 11, 2023, 9:07 a.m.