Element type is invalid: expected a string (for built-in components) or a class/function

后端 未结 9 592
谎友^
谎友^ 2020-12-03 21:11
import React from \'react\';
import ReactDOM from \'react-dom\';
import Map from \'./components/map/container/map\';
import App from \'./App\';
import \'./index.css\         


        
9条回答
  •  无人及你
    2020-12-03 21:13

    for me i was trying to route in app.js some component that have problem, so index.js will not render the / because of that in-proper import in app.js

    so alwasy make sure components in app.js are working properly

提交回复
热议问题