Skip to content

Commit

Permalink
feat: rename connect to modal
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Jan 9, 2020
1 parent 9a6b53f commit 035e04f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ npm update @feizheng/react-modal-manager
```
2. import js
```js
import ReactModalManager, { connect } from '../src/main';
import ReactModalManager, { modal } from '../src/main';
import ReactDOM from 'react-dom';
import React from 'react';
import './assets/style.scss';

const Button = connect((props) => {
const Button = modal((props) => {
return (
<React.Fragment>
<button
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 035e04f

Please sign in to comment.