我试图将一个用于jsx模板名的字符串传递给一个组件,该组件只负责在没有交互的情况下只呈现基本的html组件(我们有很多)。'react';import fs from 'fs';
export default class TemplateLoader extends/static-templates/'+this.props.template+'
我试着在jsx中使用typescript,而没有使用react。但它不起作用。我总是在tsconfig.json中放一个"jsx": "preserve"。但我不明白我必须做什么next.and当我编译.tsx文件时,webpack抛出了一个错误You may need an appropriate loader to handle this file type.我看了文档,但我不明白如何在项
我使用的是TypeScript 2和TSX,并启用了"noImplicitAny“设置和”未反应“设置:"jsx": "preserve"error TS2602: JSX element implicitly has type 'any' because the global type 'JSX.Elemen