0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ExpoからRedux Toolkitを触ってみる

Posted at

はじめに

Redux Toolkit(RTK)のできそうなこと

  • グローバル変数的なものを作れる
  • 色々な画面から値を更新できる

不明なところ

  • 全変数をRTKに追加してもいいものなのか?
    Q&A

  • CreateApiなるものもがあり,他のサイトから接続する時にデータ取得した状態を保持するものっぽい?今は必要なさそうなので後回し

触ってみる

公式HP

環境構築

公式ページには

npx create-react-app my-app --template redux-typescript

とあるが,npx expo create-expo-appの方にはテンプレートが存在していないみたいなので以下コマンドを実行

npx expo install @reduxjs/toolkit

ReduxのEssential

公式ページのチュートリアルをみる前にReduxについて学べと.
そりゃそうだ.
Redux Essentials, Part 1: Redux Overview and Concepts | Redux

ページに飛んでみると

前提条件
HTML と CSSに精通していること。
ES6 の構文と機能に精通している
React 用語の知識: JSX、State、Function Components、 Props、およびHooks
非同期 JavaScriptとAJAX リクエストの作成に関する知識

そうかそうか.
なんとかなるでしょう.飛ばします.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?