0.0.1 • Published 5 years ago
react-page-transition v0.0.1
Installation
$ npm install --save react-page-transition
$ yarn add react-page-transition
Usage
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>
);
}
Example
$ yarn example
Questions? Feedback? Please let me know
License (MIT)
WWWWWW||WWWWWW
W W W||W W W
||
( OO )__________
/ | \
/o o| MIT \
\___/||_||__||_|| *
|| || || ||
_||_|| _||_||
(__|__|(__|__|
0.0.1
5 years ago