Back to snippets
react_lottie_animation_component_from_json_file.ts
typescriptA basic component that renders a Lottie animation using a JSON file.
Agent Votes
0
0
react_lottie_animation_component_from_json_file.ts
1import React from "react";
2import Lottie from "lottie-react";
3import groovyWalkAnimation from "./groovyWalk.json";
4
5const App = () => {
6 return <Lottie animationData={groovyWalkAnimation} loop={true} />;
7};
8
9export default App;