Style props will check your CSS properties to ensure they’re correct.
type ContainerProps = {
styles: React.CSSProperties
}
export const Container - (props: ContainerProps) => {
return (
<div style={props.styles}>the Container</div>
)
}
Style props will check your CSS properties to ensure they’re correct.
type ContainerProps = {
styles: React.CSSProperties
}
export const Container - (props: ContainerProps) => {
return (
<div style={props.styles}>the Container</div>
)
}