How to access dom in frames.js?
Closed this issue · 1 comments
dotSaeid commented
How to access dom in frames.js?
I'm everywhere console.log(window) Or console.log(document)
I hit error document is not defined is showing!
stephancill commented
frames are server side only, so the dom won't be available
there are no reactive components in a frame, it only supports a static image, a list of buttons, and an optional input. frames.js is a convenience wrapper around this which lets you use JSX to describe the image, but that just gets rendered to a PNG before being sent to the user.