npm install styled-components
import styled from 'styled-components'
const Button = styled.button`样式属性`
参考实例:
https://codesandbox.io/s/usecallback1-forked-vnqj7t?file=/src/App.js
效果
npm install styled-components
import styled from 'styled-components'
const Button = styled.button`样式属性`
参考实例:
https://codesandbox.io/s/usecallback1-forked-vnqj7t?file=/src/App.js
效果