Using React with Blender4Web

25 September 2018 22:33

I was just working with a similar scenario and found an alternative to that. Not sure if this topic has been resolved but here is what I found.

Essentially I exported my B4W project as an .html file, and then used this React component:

In the URL attribute of this component I replaced the absolute link to the example youtube video with the following:
url={process.env.PUBLIC_URL + '/B4WExports/sample.html'}

with the .html file placed in the public directory. Hope that helps!
Please register or log in to leave a reply.