最終更新:2022-08-04 (木) 18:38:02 (893d)
React/ルール
React/propsは読み取り専用
- 全てのReact/コンポーネントは、自己のReact/propsに対して純粋関数のように振る舞わねばなりません。
- 純粋関数(Pure function):同じ入力に対し同じ結果を返す
- https://ja.reactjs.org/docs/components-and-props.html#props-are-read-only