mirror of
https://github.com/streamich/react-use.git
synced 2026-02-01 14:37:31 +00:00
chore: clean tsconfig.json; feat: updated webpack config to export a function to achieve full-control mode, instead of deprecated Extend Mode;
15 lines
379 B
TypeScript
15 lines
379 B
TypeScript
import { storiesOf } from '@storybook/react';
|
|
import * as React from 'react';
|
|
import { useTween } from '../src';
|
|
import ShowDocs from './util/ShowDocs';
|
|
|
|
const Demo = () => {
|
|
const t = useTween();
|
|
|
|
return <div>Tween: {t}</div>;
|
|
};
|
|
|
|
storiesOf('Animation|useTween', module)
|
|
.add('Docs', () => <ShowDocs md={require('../docs/useTween.md')} />)
|
|
.add('Demo', () => <Demo />);
|