@shimehituzi - 3y
npx create-react-app --template typescript example-app
で初期化したものを書き直しますindex.tsx
1import React from 'react'2import { render } from 'react-dom'3import { App } from './App'45render(<App/>, document.getElementById('#root'))
App.tsx
1import React from 'react'23export const App: React.FC = () => {4 return (5 <div>HelloWorld</div>6 )7}