W
W
wo0dpeker2020-08-13 22:36:34
JavaScript
wo0dpeker, 2020-08-13 22:36:34

Why is there an error in JSX code?

Why might an error occur here?

<div className={classed.wrap}>
      <NavLink to="/test" className={classed.purple}>
        <h5>рейтинг</h5>
        <h4>Класса</h4>
        <div className={classed.ic}>
          <img src="#" alt="Rating one" />
        </div>
      </NavLink>
</div>


Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question