2019-11-01から1ヶ月間の記事一覧
後で振り返るように。 action&state interface Action<ActionType> { type: ActionType; payload?: any; } enum CounterActionType { Increase, Decrease } interface CounterState { count: number; } type CounterAction = Action<CounterActionType>; function reducer(state: CounterSta</counteractiontype></actiontype>…
ディープリンク対応する際にこちらのリポジトリを参考に実装しました。 urlのパラメーター(具体的にはuser?id=0 user/:id的なやつ)はpathParameterとqueryParameterと呼ばれているらしいです。 使用例 URLの文字列をpattern文字列を指定してパースします。 …