ts Types of property ‘flex Direction’ are incompatible.
problem
reac + ts 定义样式object
const wrapStyle= {
display: 'flex',justifyContent: 'center',alignItems: 'center',flexDirection: 'column'
}
vscode编辑器提示:
ts Types of property 'flex Direction' are incompatible.
solution
flexDirection: 'column'
改为
flexDirection: 'column' as 'column'