Installation
Explains how to install the Lottie-React component.
Ensure that you have npm or yarn installed before installing this component.
- Install package using npm or yarn.
npm install --save @lottiefiles/react-lottie-player (or)
yarn add @lottiefiles/react-lottie-player
- Import the
react-lottie-player
package in your code.
import { Player, Controls } from '@lottiefiles/react-lottie-player';
To rapidly build and view the React interface:
- 1.
- 2.Run
yarn install
- 3.Run
yarn storybook
Last modified 1yr ago