For reference this article explains on how to style a component: https://reactjs.org/docs/dom-elements.html#style
When I do a simple statement like:
const cardStyle = {
display: flex,
justifyContent: center,
alignItems: center,
backgroundColor: `${bgColor}`,
color: color,
height: '150px',
width: '300px'
}
I get the following error:
Line 19:18: 'flex' is not defined no-undef
Line 20:25: 'center' is not defined no-undef
Line 21:21: 'center' is not defined no-undef
Search for the keywords to learn more about each error.
I found this answer online but it wasn't to helpful Link
This is my first question, so I appreciate your response. Thank you!