@Una This is @kentcdodds implementation of a flexible accordion. Saw this in one of his tutorials. https://t.co/bHCtzzkDaS Might need to bump up the react-pose version to 2.0.0
Wondering if animation direction change based on LTR/RTL (direction) value can somehow be configured in framer-motion ?
Or - is the only way to achieve this is by changing the initial and animate values based on RTL in my code?
@mattgperry
Ok, figured it out :) This has to do with the useEffect cleanup functions being executed asynchronously in React 17. Resolved it using useLayoutEffect π
@reactjs @dan_abramov
Why would this piece of code behave differently in React 16.13.1 vs 17.0.2
I'm trying to save the scrollY value when component unmounts. React 16 gives me the correct value, but with React 17 it is always 0
CodeSandbox
https://t.co/eCDI6PnR4B
@pniedri@tjvantoll@DanWilson Loved your discussion about modernizing enterprise react apps. Would you recommend adding eslint and prettier to an existing react app which currently doesn't use them? If so, anything I need to be aware of? It is an enterprise level app.