Yes, R users can use React as shown in this blog post. This example uses office-ui-fabric-react
from Microsoft.
library(htmltools)
library(reactR)
fabric <- htmlDependency(
name = "office-fabric-ui-react",
version = "5.23.0",
src = c(href="https://unpkg.com/office-ui-fabric-react/dist"),
script = "office-ui-fabric-react.js",
stylesheet = "css/fabric.min.css"
)
browsable(
tagList(
html_dependency_react(offline=FALSE),
fabric,
tags$div(id="pivot-example"),
tags$script(HTML(babel_transform(
"
class PivotBasicExample extends React.Component {
render() {
return (
<div>
<Fabric.Pivot>
<Fabric.PivotItem linkText='My Files'>
<Fabric.Label>Pivot #1</Fabric.Label>
</Fabric.PivotItem>
<Fabric.PivotItem linkText='Recent'>
<Fabric.Label>Pivot #2</Fabric.Label>
</Fabric.PivotItem>
<Fabric.PivotItem linkText='Shared with me'>
<Fabric.Label>Pivot #3</Fabric.Label>
</Fabric.PivotItem>
</Fabric.Pivot>
</div>
);
}
}
ReactDOM.render(<PivotBasicExample />, document.querySelector('#pivot-example'));
"
)))
)
)
https://unpkg.com/react/umd/react.production.min.js
https://unpkg.com/react-dom/umd/react-dom.production.min.js
https://unpkg.com/office-ui-fabric-react/dist/office-ui-fabric-react.js