Skip to content

Commit 1e33f33

Browse files
authored
chore: add for nextjs (#12)
1 parent 03c423d commit 1e33f33

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"compile": "father build",
2828
"coverage": "rc-test --coverage",
2929
"lint": "eslint src/ docs/examples/ --ext .tsx,.ts,.jsx,.js",
30-
"prepublishOnly": "npm run compile && np --yolo --no-publish",
30+
"prepublishOnly": "npm run compile",
3131
"start": "dumi dev",
3232
"test": "rc-test"
3333
},

src/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import { unstableSetRender } from 'antd';
24
import { createRoot } from 'react-dom/client';
35

0 commit comments

Comments
 (0)