moby-provider
v0.3.0
Published
Downloads
2
Readme
Moby Provider
import { MobyProvider } from 'moby-provider';
ReactDOM.render(
<MobyProvider store={store}>
<App />
</MobyProvider>,
document.getElementById('root')
);
import { useMobyContext } from 'moby-provider';
const App = (props) => {
<h1>Mobylogix!</h1>
};
export default useMobyContext(App);
mAdd: (actionKey, dataKey, data, id)
actionKey: 'GET_USER'
dataKey: 'user.users' (Format: 'reducerName.keyName')
data: { name: 'Mobylogix' }
id: '1'
mUpdate: (actionKey, dataKey, data)
actionKey: 'UPDATE_USER'
dataKey: 'user.users' (Format: 'reducerName.keyName')
data: { _id: '1', name: 'Mobylogix' }
mRemove: (actionKey, dataKey, id)
actionKey: 'REMOVE_USER'
dataKey: 'user.users' (Format: 'reducerName.keyName')
id: '1'