A Basic demonstration of integrating a ThreeJS scene into a Preact Component. Taken from this demonstration Codepen
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# test the production build locally
npm run serve
For detailed explanation on how things work, checkout the CLI Readme.