Running Rive React Runtime Demos Locally (Minimal Setup)
I put together a short guide on running the official Rive React Runtime Demos locally.
It’s useful if you want to test your own Rive files and explore Data Binding outside the editor.
After several hours of trial and error, I found that React demos are the easiest to run locally, with only a minimal setup required.
Requirements (quick disclaimer)
Node.js 16.x+ and npm 8.x+ must be installed on your computer (npm comes with Node.js)
The project requires adding a minimal tsconfig.json file at the root of the demo folder, with the following content:
{
"compilerOptions": {
"jsx": "react-jsx"
},
"include": ["src"]
}With npm installed, the walkthrough video alone should be enough to get a demo running locally.
Full walkthrough video
Written guide (more context and explanations)
https://medium.com/@vincent.forner/the-easiest-way-to-run-rive-runtime-demos-locally-218047c3c4c1
Sharing in case it helps others exploring Runtime Demos and Data Binding.