I am new learner of react. Actually, I am trying to return multiple jsx elements inside a div element.
But it is not working, and, in the terminal, there shows two errors which I have depicted in the picture above. And my output page is just blank. Even in the console it is not appearing.
Any help to solve this would be appreciated.
2
Answers
You have "unreachable code" warning. It means that code after 6 line is not visible for some reason. Looks like that something happens inside the transpilar. Try to remove {}
just a minor mistake in the return statement should encompass ‘()’ not ‘{}’