brianzinn Posted September 28, 2017 Share Posted September 28, 2017 With the recently added NPM support added in 3.1.0alpha3.4 and some popular React ES6/Typescript starter kits being deprecated in favour of CRA (https://github.com/facebookincubator/create-react-app), I wanted to finally try out importing GUI with CRA + TypeScript. Thought I would put up a repo for anybody interested. Here is the demo:https://brianzinn.github.io/create-react-app-typescript-babylonjs/ Source:https://brianzinn.github.io/create-react-app-typescript-babylonjs/ Source for page with BabylonJS:https://github.com/brianzinn/create-react-app-typescript-babylonjs/blob/master/babylonjs-site/src/containers/home/index.tsx So, it's pretty straightforward from the docs (http://doc.babylonjs.com/overviews/npm_support), but also in practice turned out quite fast to get started. julien-moreau and RaananW 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 28, 2017 Share Posted September 28, 2017 This is realllly cool thanks a lot! This could be worth a page in the doc Quote Link to comment Share on other sites More sharing options...
brianzinn Posted October 24, 2017 Author Share Posted October 24, 2017 I added a page in the doc. It shows all the code to create a component that integrates BabylonJS into a ReactJS site. It doesn't feel right to link to my own github repo from the tutorial, but otherwise the tutorial would get quite large explaining many more concepts. Feel free to remove those links, though. Let me know if you want anything changed and I could update statics.json as well - title can follow along the lines of the Ionic Tutorial, so maybe just "BabylonJS in a ReactJS site". Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 24, 2017 Share Posted October 24, 2017 Thanks a lot! We will integrate it in the new structure created by @JohnK Quote Link to comment Share on other sites More sharing options...
HiteshSahu Posted September 16, 2019 Share Posted September 16, 2019 I have created a codesandbox template using React and Canvas. This template is different & simpler than one provided in documentation. Feel free to fork it: https://codesandbox.io/s/w2i1k Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.