Please help me with this

How to solve this problem?
No description
3 Replies
MarkBoots
MarkBoots6mo ago
well, apparently the button component needs a backgroundColor property. I'm no react/typescript expert (far from), but probably
<Button backgroundColor="green" />
<Button backgroundColor="green" />
shonen295
shonen2956mo ago
I think you should write <Button></Button> like this
ἔρως
ἔρως6mo ago
no, </Button> isn't needed, as jsx and tsx are parsed differently from html in html, <button/> is the same as <button>, as the /> is completely ignored but in jsx/tsx, it usually is parsed as an empty button
Want results from more Discord servers?
Add your server