Join the Webstudio community

Updated 2 months ago

Recommended way to add javascript

At a glance

The community members discuss different ways to add JavaScript in WebStudio. Some suggestions include using the HTML embed component, project settings, and injecting JavaScript through a stickied header/footer in the Navigator. One community member is interested in injecting a React component directly into WebStudio, but acknowledges this may not be feasible. The community members also note that injecting vanilla JavaScript into a React application may not be the optimal approach.

Hey, I'm would like to know the way you guys recommend to add javascript in webstudio.
O
K
y
6 comments
there is html embed component and there is project settings
depending on what kind of js you need to add
It would be nice to have something like a stickied header/footer injection in the Navigator for quick access. Like with the head slot.
In my case I'm doing a little calender form like in calendly. For me the ideal would be able to inject an react component inside webstudio. But that is probably too far fetched
Because at the end of the day, injecting vanilla js in a react, doesn't seems to be the optimal way
Add a reply
Sign up and join the conversation on Discord