JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://rawgithub.com/BabylonJS/Babylon.js/v1.8.0/cannon.js"></script>
<script src="https://rawgithub.com/BabylonJS/Babylon.js/v1.8.0/babylon.1.8.0.js"></script>
<canvas id="renderCanvas"></canvas>

CSS

html, body, canvas {
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
            overflow: hidden;
}

JavaScript

dwawdsvar canvas = document.getElementById("renderCanvas");
var engine = new BABYLON.Engine(canvas, true);
var scene = new BABYLON.Scene(engine);
var camera = new BABYLON.ArcRotateCamera("ArcRotateCamera",0,1.3,100, new BABYLON.Vector3(0, 0, 0), scene);
camera.attachControl(canvas);
var light = new BABYLON.PointLight("pointLumineux1", new BABYLON.Vector3(100, 100, 0), scene); 
var ground=BABYLON.Mesh.CreateBox("sol",100,scene);
ground.scaling.y=0.001
var sphere=BABYLON.Mesh.CreateSphere("sph",20,6,scene);
sphere.position=new BABYLON.Vector3(0,4,0);
scene.enablePhysics();
scene.setGravity(new BABYLON.Vector3(0,-10,0)); 
sphere.setPhysicsState({ impostor: BABYLON.PhysicsEngine.SphereImpostor, mass: 1 });
ground.setPhysicsState({ impostor: BABYLON.PhysicsEngine.BoxImpostor, mass: 0, friction: 0.5, restitution: 0 });
sphere.applyImpulse(new BABYLON.Vector3(0,0,5),new BABYLON.Vector3(0,0,0));
engine.runRenderLoop(function () { 
    scene.render(); 
});