Hi. I have the following component in React, a hamburger icon, which works just fine as written. My issue is I'm trying to make the component more concise by using the reverse() method on my timeline, which I can't get to work as intended. I've read through a few posts to try and remedy the issue, but it's not coming to me.
const NavHamburger = props => {
const tl = new TimelineMax()
// use useRef to detect first render
const isFirstRender = useRef(true)