Answers for "react transition group"

0

react transition group

# npm
npm install react-transition-group --save

# yarn
yarn add react-transition-group
Posted by: Guest on October-24-2020
2

react transition group

function App() {
  const [inProp, setInProp] = useState(false);
  return (
    <div>
      <CSSTransition in={inProp} timeout={200} classNames="my-node">
        <div>
          {"I'll receive my-node-* classes"}
        </div>
      </CSSTransition>
      <button type="button" onClick={() => setInProp(true)}>
        Click to Enter
      </button>
    </div>
  );
}
Posted by: Guest on March-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language