1.react框架在<></>下写判断dom会报错
报错信息:clientMiddlewareError Invariant Violation: 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
里面只要一个dom也不行