React
13
Вклад в тег
import { combineReducers } from 'redux';
import someone from './someone';
import someoneT from './someoneT';
export const rootReducer = (state, action) => {
if (action.type === 'URL_CHANGED') {
state = {}
}
return appReducer(state, action)
}
const appReducer = combineReducers({
someone,
someoneT
})
{this.state.data.map((item) =>
<Text key={item.id} style={{width: 250, paddingTop:30}}>
{item.title.rendered}
</Text>
)}