Type '{}' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes

后端 未结 7 2991
梦如初夏
梦如初夏 2020-12-15 02:42

i am currently making a simple react application. this is my index.tsx

import * as React from \'react\';
import * as ReactDOM from \'react-dom\         


        
7条回答
  •  孤城傲影
    2020-12-15 03:10

    Just had this same problem.

    You have member called term defined on the Prop inteface for your App class but you're not providing a value when you create your App element.

    Try the following:

    ReactDOM.render(, document.getElementById('root') as HTMLElement);
    

提交回复
热议问题