Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть #25.2 Redux in React/React Native | Combine reducers

  • Phạm Quang Vĩ
  • 2020-02-19
  • 156
#25.2 Redux in React/React Native | Combine reducers
redux in react nativeprogramming react native
  • ok logo

Скачать #25.2 Redux in React/React Native | Combine reducers бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно #25.2 Redux in React/React Native | Combine reducers или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку #25.2 Redux in React/React Native | Combine reducers бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео #25.2 Redux in React/React Native | Combine reducers

Redux in React/React Native | Part 1: Basic knowledge: store, action, reducer
Part 1:    • #25.1 Redux in React/React Native | Basic ...  
Part 3:    • #25.3 Redux in React/React Native | Redux ...  
Programming React Native
Github: https://github.com/uit2712/ReactNativ...
Music:
Chords of Harmony: Aakash Gandhi
Percolate: Loopop
Sun Machine One: Loopop
Til Death Parts Us: Aakash Gandhi

---------------------------------REDUX IN REACT/REACT NATIVE---------------------------------
Step 0: Benefits of using Redux:
Avoid pass data multiple levels (React/ React native passes props from parent component to its child components
Maybe some child components don't need the passing data, but it contains a component that needs this data), data is useless in some components
Redux makes it's easy to test (actions tell us what is happening), traditional state in every components makes us crazy when something wrong but we don't know where it happened

THREE OBJECTS IN REDUX: STORE, REDUCER AND ACTION

Step 1: Install modules: redux, react-redux
npm i --save redux react-redux
Step 2: Create a simple store, store is used to contain your app states (combines all components state)
Step 3: Create a simple reducer, reducer is a pure function which returns new state based on an action (I will explain this in later steps). Reducer has 2 parameters:
state: this is state of current reducer
action: simple is a plain object contains some value, such as: type (often a string tell something about this action), payload (contains data),...
... Because reducer is a pure function, we shouldn't change these parameters, this is a rule :)))
... NOTE: reducer 'contains' state (we init this with 'initialState')
Step 4: Connect REDUX to our app
Step 5: Build REDUX FRAMEWORK, create folders: store, reducers, actions
Step 6: Combine reducers
Step 7: Use middleware redux-thunk, used for actions which don't return a plain object, such as fetch data from API
npm i --save redux-thunk

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]