react+typescript
- css模式 支持less 嵌套,直接引用样式,不支持less嵌套
-
ts 定义函数,参数是对象时
function fn1 ({a}:{a:string;}){
}
interface propsState={
user:string
}
const fn2: React.FC<propsState> = ({user})=>{}
ts 定义函数,参数是对象时
function fn1 ({a}:{a:string;}){
}
interface propsState={
user:string
}
const fn2: React.FC<propsState> = ({user})=>{}