的getting started page說: import { createStore, combineReducers } from 'redux'
import { reducer as formReducer } from 'redux-form'
const reducers = {
// ... your other reducers here ...
for
我遇到了一個問題,使我的登錄表單字段驗證與redux-form一起工作。目前,我只是想讓同步驗證工作,以便我可以檢查基本錯誤。問題在於表單似乎只在組件掛載時才檢查驗證,而不是在該點之後再次檢查。下面是我的代碼: import React from 'react';
import { Field, reduxForm } from 'redux-form';
import * as Re
我試圖做這樣的事情用終極版形式: Age range selector 的問題是,我有外地的年齡。我不能讓它有兩個值(它只存儲一個值) let options = [1,2,3,4,5,6,7]; // etc... a lot of ages
// field is a redux field
// Minimum
<select {...age} value={