'Can I continue to use CreateStore and CombineReducers methods in expo 44 and above?
I have just completed a mobile app using Expo and React native.
In that App, I have used "react-redux," "redux-thunk," and "redux" for Global State Management.
Store creation:
import React from 'react';
import { createStore, applyMiddleware } from "redux";
import { Provider } from "react-redux";
import ReduxThunk from "redux-thunk";
import rootReducer from "./store/reducers/reducers";
import { StyleSheet, SafeAreaView ,StatusBar } from 'react-native';
const store = createStore(rootReducer, applyMiddleware(ReduxThunk));
export default function App() {
return (
<Provider store={store}>
<MY COMPONENT/>
</Provider>
);
}
Reducer file using combineReducers:
import { combineReducers } from "redux";
import selectedVessel from "./selectedVessel";
const appReducer = combineReducers({
selectedVessel: selectedVessel,
});
If I don't want to change my code structure, Can I continue this in expo 44 and above?
If I continue this practice, am I stuck in the future?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
