Skip to content

Commit 7bc540c

Browse files
LukerSpringtreejianglin
andauthored
fix(README): 修复README.md 文档当中的错误
Co-authored-by: jianglin <dejing.ldj@alibaba-inc.com>
1 parent 30b868a commit 7bc540c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ https://react-component.github.io/motion/
3838
```tsx
3939
import CSSMotion from 'rc-motion';
4040

41-
export default ({ visible }) => {
41+
export default ({ visible }) => (
4242
<CSSMotion visible={visible} motionName="my-motion">
4343
{({ className, style }) => <div className={className} style={style} />}
44-
</CSSMotion>;
45-
};
44+
</CSSMotion>
45+
);
4646
```
4747

4848
## API

0 commit comments

Comments
 (0)