K
K
Konstantin2021-03-01 13:37:13
React
Konstantin, 2021-03-01 13:37:13

Error while working with React?

I'm training with React. Gives an error message


Failed to compile
src\components\app\app.js
Line 5:8: 'TopComponent' is not defined react/jsx-no-undef

Search for the keywords to learn more about each error.
This error occurred during the build time and cannot be dismissed.


What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valery, 2021-03-01
Fetishchev @IDDQDK

You are not importing the component in App.js

A
approximate solution, 2021-03-01
@approximate_solution

Line 5:8: 'TopComponent' is not defined react/jsx-no-undef

What is written here? Translated?
603cc47bdf40c707022778.png
https://developer.mozilla.org/en-US/docs/Web/JavaS...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question