I am using Material UI 4 for React, and receiving error below. How do I fix? It actually works in modifying CSS, and I got similar code from here Why does my MUI Divider not show up in a MUI Container or Paper? .
Code:
<Divider style={{ padding: '1px' }} />
Error:
(property) style: {
padding: string;
}
Type '{ style: { padding: string; }; }' is not assignable to type 'IntrinsicAttributes & DividerProps'.
Property 'style' does not exist on type 'IntrinsicAttributes & DividerProps'.ts(2322)