babel_transform: Transform Code with Babel

View source: R/babel.R

babel_transformR Documentation

Transform Code with Babel

Description

Helper function to use V8 with Babel so we can avoid a JSX transformer with using reactR.

Usage

babel_transform(code = "")

Arguments

code

character

Value

transformed character

Examples

## Not run: 
library(reactR)
babel_transform('<div>react div</div>')

## End(Not run)

react-R/reactR documentation built on Sept. 15, 2024, 8:34 p.m.