「.NET 開発基盤部会 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
目次 †概要 †
手順1 †https://github.com/OpenTouryoProject/FrontendTemplates/tree/develop/SPA/React/react_template をベースにしてASP.NETのCRUD処理を実装する。 ポイント †Styleの指定方法 †以下があるが、基本は1、2辺りを使う。
Controlled Component on Form †
Each child in an array should have a unique "key" prop. †mapでループする場合、JSXのelementにkeyプロパティを追加する。 fetch APIでPOST or JOSN-RPC †以下のように処理できる。 fetch("URL", {method, headers, body}).then(...
参考 †Styleの指定方法 †
Controlled Component on Form †
Each child in an array should have a unique "key" prop. †
fetch APIでPOST or JOSN-RPC †
手順2 †https://github.com/OpenTouryoProject/FrontendTemplates/tree/develop/SPA/React/redux_template をベースにしてASP.NETのCRUD処理を実装する。 振返り †ポイント †stateのprop化 †Componentのstateを、 イベントのActions化 †合わせて、Reducers、Storeを実装 †TextBox?の双方向バインド †双方向バインドを行う場合、input type="text" の onChange時をRedux化する必要がある。 手順3 †以下のレイアウト崩れの解消を行う。
色々調べてみると、
|