+ 1
My custom react component doesn't work
Why it doesn't work? It has to
6 Respuestas
+ 2
Always use first letter capital for the React Components
Line 12 - function Header(){
Line 19 - <Header />
+ 1
zexu knub thanks it worked😍
Why if we dont use capital it doesn't work?
+ 1
Zeynab Cool, I don't know for sure but i guess it's because lowercase component conflicts with the predefined HTML tags
0
Please do not put links in the tag section – we cannot click it. Rather put the relevant programming language in the tag section.
0
zexu knub this makes sense.