Replies: 2 comments
-
是直接使用子包的导入方式吗? import Button from 'zent/es/button'; 更希望解构赋值的方式来完成 tree-shaking import { Button } from 'zent'; |
Beta Was this translation helpful? Give feedback.
0 replies
-
使用 // App.tsx
import React from 'react'
import { Button } from 'zent'
const App = () => {
return (
<Button>点我</Button>
)
}
export default App |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
RT
Beta Was this translation helpful? Give feedback.
All reactions