so for the past few days ive been trying to make animation changes in react with variables inside the css without much luck. the tutoiral im following is this:
https://dev.to/terrierscript/styled-component--react-transition-group--very-simple-transition-jja
however when i get to this line of code im not quite following
Transition in={animate} timeout={500}>
{(state) => (
// state change: exited -> entering -> entered -> exiting -> exited
<Animation state={state}>Hello</Animation>
i see that a function is called with state as a parmeter which then passes it to the animation component as props however im not following what state actually is in the call? any help would be very much appeachated been trying to relicate the results of the tutoiral but getting no where.