Skottie player for react
npm install --save skottie-react
Place skottiekit.wasm file in your public directory
import React from 'react'
import { SkottiePlayer } from 'skottie-react'
import 'skottie-react/dist/index.css'
import data from './data.json';
const App = () => {
return <SkottiePlayer
animationData={data} // Load animation from data.json
assetPath={'/images'} // Fetch assets (if extracted) from ${HOST_ADDR}/images
skottiePath='/' // Fetch skottiekit.wasm from ${HOST_ADDR}/skottiekit.wasm
height={800} width={800} />
}
export default App
BSD 3-Clause