I am not completely sure where my mistake is since I just started learning React. The background image that I'm importing is not working and it might be due to the error I'm getting.
Asked
Active
Viewed 42 times
0
-
`topSectionContainer` should be renamed as `TopSectionContainer` (both varaible and JSX), reason can be seen here: https://stackoverflow.com/questions/30373343/reactjs-component-names-must-begin-with-capital-letters – Jhilton Oct 27 '22 at 09:30
-
yes, i tried that, the error is gone but my image background is not showing. – altontonie Oct 27 '22 at 09:43
-
use `background-image` instead of `background` property, that should do it – Jhilton Oct 27 '22 at 09:52
-
the screen is still blank. – altontonie Oct 27 '22 at 09:58
-
Could you please update the images to check how your code looks now ? or create and share a code sandbox where people can check the issue, that would help anyone reading your question :) – Jhilton Oct 27 '22 at 10:34