Load a webassembly build of the Godot engine and Bootstrap packed games from within the react component tree
npm install --save react-godot
import * as React from "react";
import ReactGodot from "react-godot";
class Example extends React.Component {
render() {
return (
<ReactGodot
script="/path/to/myGame.js"
pck="/path/to/myGame.pck"
wasm="/path/to/myGame.wasm"
/>
);
}
}
Tested with HTML5 export from Godot 3.5.3 LTS.
MIT © d3dc