React

React+Redux+TypescriptでTodoListを作る

create-react-appのTypescript版でreact-scripts-tsがあるので、それを使ってTodoListを作る。 $
Read more

create-react-appからTypescript+Reactで動かすまで

$ create-react-app my-app $ npm run eject $ npm install -g webpack $ npm install --save @types/react @types/react-dom $ npm install --save-dev typescript ts-loader source-map-loader $ vim tsconfig.json tsconfig.jsonを作る。内容は下記。 { "compilerOptions": { "outDir": "./dist/", "sourceMap": true, "noImplicitAny": true, "module": "commonjs", "target": "es5", "jsx": "react" }, "include": [ "./src/**/*"
Read more