Hi, I think you'd update your example and fix the quotes:
<pstyle={{marginTop:10,color:"red"}}>Something went wrong.</p>
The css styles that you pass to the rules need to be a string or number so instead of color: red it is color: "red".
Also I think the correct spelling is kebab-case ;)
Hi, I think you'd update your example and fix the quotes:
The css styles that you pass to the rules need to be a string or number so instead of
color: red
it iscolor: "red"
.Also I think the correct spelling is
kebab-case
;)Hope this helps!
Thanks a lot 😅.