Skip to content

Commit

Permalink
release(0.5.6): v0.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqiboy committed Apr 10, 2019
1 parent c216905 commit 0bc1774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1939,9 +1939,9 @@ export default connect(Submit);
**如果你要开始使用`Hooks`,请确保你已经安装了最新的`react-formutil@>0.5.0`以及`react@>16.8.0` `react-dom@>16.8.0`。**
全新的`Hooks`方法,位于`react-formutil/hooks`下(如果要使用新增的`useField` `useForm` hooks,必须从这里导出获取)。
~~全新的`Hooks`方法,位于`react-formutil/hooks`下(如果要使用新增的`useField` `useForm` hooks,必须从这里导出获取)。~~
你可以直接将项目中的,所有的从`react-formutil`的导出,全部改为从`react-formutil/hooks`导出(是的,所有你需要的组件、HOC、TS 类型定义等都可以从这里导出)。当然,这是一个建议,如果你这么做了,理论上可以减少一点构建体积`^_^`。如果没用到 hooks 的地方,依然保持目前的导出方式,依然没有问题!
**`v0.5.6`起,你可以直接从主包中导出hooks相关方法了**
#### `useField`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-formutil",
"version": "0.5.6-beta.7",
"version": "0.5.6",
"description": "Happy to build the forms in React ^_^",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
Expand Down

0 comments on commit 0bc1774

Please sign in to comment.