library(reactR)
library(htmltools)
tagList(
tags$script(
"
ReactDOM.render(
React.createElement(
'h1',
null,
'Powered by React'
),
document.body
)
"
),
#add core-js first to work in RStudio Viewer
html_dependency_corejs(),
html_dependency_react() #offline=FALSE for CDN
)
Run the code above in your browser using DataLab