Can we add React.js code in builder.io?

Hiii,
Can we add React. js code directly into builder? without using vs code ?

Hello @Dhanashree,

In Visual Editor, you can integrate JavaScript and custom code to add interactivity and dynamic behavior to your content. However, directly writing React.js code in a JavaScript section of the Visual Editor is not how you would typically integrate React components.

Instead, the recommended approach is to register custom React components with Builder.io as I described earlier. This allows React components to be used as custom blocks in the Visual Editor.

If you want to enhance Builder blocks with custom JavaScript logic, you can utilize the custom actions and bindings in your Builder components. However, for full-fledged React components, registering them as custom components is the more robust and maintainable solution.

Hope this helps!

Thanks,

@manish-sharma
Thank You!