Skip to content

Commit e8b3daa

Browse files
committed
docs(next-js): added usage instructions with next.js
1 parent ad49afc commit e8b3daa

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ const props = {
7171
<ReactCodeInput type='number' fields={6} {...props}/>
7272
...
7373
```
74+
### Usage with next.js
75+
```js
76+
import dynamic from 'next/dynamic';
77+
78+
const ReactCodeInput = dynamic(import('react-code-input'));
79+
...
80+
<ReactCodeInput type='number' fields={6} {...props}/>
81+
...
82+
```
83+
7484
## Props:
7585

7686
| Property | Type | Description |
@@ -97,5 +107,7 @@ const props = {
97107
## Compatible with
98108
[`redux-form`](https://github.com/erikras/redux-form) from [erikras](https://github.com/erikras)
99109

110+
[`next.js`](https://github.com/zeit/next.js) from [zeit](https://github.com/zeit)
111+
100112
## License
101113
MIT

0 commit comments

Comments
 (0)