This project is an example of basic integration between React and Spline - A toggle in Spline changes theme in React / Two buttons in React control a Spline animation. To edit the Spline scene download the .spline file and open it in Spline App, which is free to use.
run npm install
-or-
npm install @splinetool/react-spline @splinetool/runtime
npm install styled-components
npm start
Runs the app in the development mode.\
Open http://localhost:3000 to view it in the browser.
Open the .spline file from the Spline_scene folder in Spline App.
Copy the scene URL from the Spline export window to the “scene” property in the Spline component, in App.tsx
Spline home / Spline app / Spline docs / Spline-React GitHub
