JS: Mark character strings as literal JavaScript code

View source: R/react.R

JSR Documentation

Mark character strings as literal JavaScript code

Description

Copied verbatim from the htmlwidgets package to avoid adding a dependency just for this single function.

Usage

JS(...)

Arguments

...

Character vectors as the JavaScript source code (all arguments will be pasted into one character string).

Value

The input character vector marked with a special class.


shiny.react documentation built on Dec. 28, 2022, 3:07 a.m.