JSX
Reactのコンポートでfor (let i: number; i < arr.length; i++) { } とかだるい。 this.arrにstringの配列があるとして、 <tbody> { this.arr.forEach.call((item:string, index: number) => { return ( <tr> hoge </tr>); }) } </tbody> だとコンパイル時にエラー出ないと思ったらラ…
React.CSSPropertiesだ。 import * as React from 'react'; const style: React.CSSProperties = { color: 'red', textAlign: 'center' }; React入門 React・Reduxの導入からサーバサイドレンダリングによるUXの向上まで (NEXT-ONE)作者: 穴井宏幸,石井直矢,…