Skip to content
Advertisement

React: Passing Props not working. Am I missing something?

as you may get from the title, passing props in react is not working. And i don´t get why.

JavaScript

On my App.js page here is the following:

JavaScript

Problem: if i start the script and render the page, nothing is shown. What am I doing wrong?

Advertisement

Answer

You should pass <Login /> as the element. Try this code:
App.js:

JavaScript
Advertisement