const textStyle: CSSProperties = {
textDecoration: none
};
<span onClick={handleToggle} style={textStyle}>
{todo.text}
</span>
const styles = {
promAlert: {
display: "flex",
} as React.CSSProperties,
}
<div style={styles.promAlert}>
stackoverflow.com/questions/50960084/how-to-extends-cssproperties-in-react-project
react.vlpt.us/using-typescript/05-ts-redux.html#srccomponentstodoitemtsx
'javascript > TypeScript' 카테고리의 다른 글
배열 type 명시하기 (0) | 2020.09.22 |
---|---|
[error] Property does not exist on type 'never' (0) | 2020.09.21 |
[TypeScript] 1 : 타입스크립트란? & 기본 설치 (0) | 2020.09.07 |
댓글