This article is a stub. We are working to edit and expand it.

The app/js/index.js is the entrypoint for your JavaScript code.

To use functions defined in this file in R you must export them:

export function sayHello() { console.log('Hello!'); }

and use an App. prefix when referring to them in your R code.

tags$button(onclick = "App.sayHello()")


Appsilon/rhino documentation built on Sept. 27, 2024, 7:01 p.m.