Redux Style GuideIntroductionThis is the official style guide for writing Redux code. It lists our recommended patterns, best practices, and suggested approaches for writing Redux applications. Both the Redux core library and most of the Redux documentation are unopinionated. There are many ways to use Redux, and much of the time there is no single "right" way to do things. However, time and expe
Standard patterns for setting up a Redux app with TypeScriptTechniques for correctly typing portions of Redux logic OverviewTypeScript is a typed superset of JavaScript that provides compile-time checking of source code. When used with Redux, TypeScript can help provide: Type safety for reducers, state and action creators, and UI componentsEasy refactoring of typed codeA superior developer experi
How a Redux store works with a UIHow to use Redux with React IntroductionIn Part 4: Store, we saw how to create a Redux store, dispatch actions, and read the current state. We also looked at how a store works inside, how enhancers and middleware let us customize the store with additional abilities, and how to add the Redux DevTools to let us see what's happening inside our app as actions are disp
Many applications deal with data that is nested or relational in nature. For example, a blog editor could have many Posts, each Post could have many Comments, and both Posts and Comments would be written by a User. Data for this kind of application might look like: const blogPosts = [ { id: 'post1', author: { username: 'user1', name: 'User 1' }, body: '......', comments: [ { id: 'comment1', author
How to create a Redux storeHow to use the store to update state and listen for updatesHow to configure the store to extend its capabilitiesHow to set up the Redux DevTools Extension to debug your app IntroductionIn Part 3: State, Actions, and Reducers, we started writing our example todo app. We listed business requirements, defined the state structure we need to make the app work, and created a
Redux FAQ: Organizing StateTable of ContentsRedux FAQ: Organizing StateTable of ContentsOrganizing StateDo I have to put all my state into Redux? Should I ever use React's useState or useReducer?Further informationCan I put functions, promises, or other non-serializable items in my store state?Further informationHow do I organize nested or duplicate data in my state?Further informationShould I pu
The articles listed in Prerequisite Concepts#Immutable Data Management give a number of good examples for how to perform basic update operations immutably, such as updating a field in an object or adding an item to the end of an array. However, reducers will often need to use those basic operations in combination to perform more complicated tasks. Here are some examples for some of the more common
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く