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;
16 lines
310 B
TypeScript
16 lines
310 B
TypeScript
import * as React from 'react';
|
|
|
|
export const CenterStory = ({ children }) => (
|
|
<div
|
|
style={{
|
|
display: 'flex',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
maxWidth: '400px',
|
|
margin: '40px auto',
|
|
}}
|
|
>
|
|
<div style={{ width: '100%' }}>{children}</div>
|
|
</div>
|
|
);
|