Drop in page transition component built for hooks
$ npm install --save react-page-transition
$ yarn add react-page-transition
import * as React from 'react'
import Pager from 'react-page-transition'
export default function App() {
const [value, setState] = React.useState(0);
return (
<Pager value={value} onRequestChange={i => setState(i)}>
<div>Hey!</div>
<Component2 />
{(props, index) => {
return 'I also work!';
}}
</Pager>
);
}
$ yarn example
Questions? Feedback? Please let me know
WWWWWW||WWWWWW
W W W||W W W
||
( OO )__________
/ | \
/o o| MIT \
\___/||_||__||_|| *
|| || || ||
_||_|| _||_||
(__|__|(__|__|