Created
July 5, 2021 18:42
-
-
Save marshallmurphy/0ca67cbd33c8b983d530eba5ce78b3b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react'; | |
import Lottie from 'react-lottie-segments'; | |
import animationData from './lotties/toggle.json'; | |
import styles from './App.module.css'; | |
function App() { | |
const [sequence, setSequence] = useState({ // here | |
segments: [0, 1], | |
forceFlag: true | |
}) | |
const options = { | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment