reactjs - displays another component instead of the given component react - TagMerge
2displays another component instead of the given component reactdisplays another component instead of the given component react

displays another component instead of the given component react

Asked 1 years ago
0
2 answers

if you want to display Landing.js instead of App.js then add this :

render(<Landing />, document.querySelector('#root'))

and don't forgot to import Landing Page.

Source: link

0

enter image description here

File name and class and export were correct. But I did not notice that the import was specified incorrectly, therefore, for a long time I could not find the problem, I simply did not notice it.

Source: link

Recent Questions on reactjs

    Programming Languages