DEV Community

Discussion on: I built an online code editor

Collapse
 
miketalbot profile image
Mike Talbot ⭐

What a wonderful thing that is... Can see me getting my daughter using that. Does it/could it work with babel in the browser to support ES6?

Collapse
 
chr15m profile image
Chris McCormick

Yes, I beleive it's possible to get babel running from a script tag. Will be slower I think. I should add an example for doing this, thanks for the idea!

Collapse
 
chr15m profile image
Chris McCormick

I just tested this and it works by the way. I followed the instructions on Add React to a Website with the Slingcode editor and it worked perfectly translating JSX etc. I made a video of it which you can see here:

Collapse
 
miketalbot profile image
Mike Talbot ⭐

That is very very cool :)