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)

reactR documentation built on Sept. 30, 2024, 9:33 a.m.