Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created July 5, 2021 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallmurphy/0ca67cbd33c8b983d530eba5ce78b3b1 to your computer and use it in GitHub Desktop.
Save marshallmurphy/0ca67cbd33c8b983d530eba5ce78b3b1 to your computer and use it in GitHub Desktop.
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