ВБ
Самое очевидное <div className="class" />
Size: a a a
ВБ
A
a
VH
const useComponent = () => {
const [state, setState] = useState({});
const Component = () => <div {...state} />;
return [Component, setState];
}tsx переименовать, когда добавил компонент )))VH
VH
const CustomTable = styled.table`
`
const CustomCell = styled.td`
${CustomTable} & {
text-align: ${props => props.left ? 'left' : 'center'}
}
<CustomTable>
...
<CustomCell>Я по центру</CustomCell>
<CustomCell left>А я левая</CustomCell>
...
</CustomTable>
A

VH
const CustomTableCell = styled.td`
${CustomTable} & {
....
`
A
text-align: centerна 28 строчке
A
const CustomTableCell = styled.td`
${CustomTable} & {
....
`
VH
A

A
VH

VH
A
A
VH
A