I am trying an example with React Native and Typescript and for the following code:
style={styles.uploadedImage} />
我得到错误:JSX元素类型'HTMLImageElement‘不是</em
元素类型' element‘不是JSX元素的构造函数。注意,错误与组件的使用有关(let x声明)。好像React的定义文件不允许将其作为有效的JSX吗?我正在使用来自tsd的最新的Response0.14定义文件,我做错了什么?{names.map((name)=> <GreeterComponent n
在搜索了过去的8小时后,我找不到解决这个问题的方法。我收到一条消息:JSX element type 'X' is not a constructor function for JSX elements.' is missing the following properties from type 'ElementClass': base, linkState
当在另一个文件中工作时,调用呈现简单组件的方法我的组件确实呈现在那个父文件上,
坚持使用这个打字错误。正在尝试使用react-apollo中的Query组件。JSX element type 'Query<any, { id: number; }>' is not a constructor function for JSX elements.[ts] JSX element class does not support attributes because it does not have a 'props' property.[