|
@@ -0,0 +1,16 @@
|
|
|
|
+export const createStore = (initial, actions = {}) => {
|
|
|
|
+ const store = {};
|
|
|
|
+ const hooks = {};
|
|
|
|
+
|
|
|
|
+ const mergeState = newState => {
|
|
|
|
+ // TODO
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ mergeState(initial);
|
|
|
|
+
|
|
|
|
+ const dispatch = {}; // TODO
|
|
|
|
+
|
|
|
|
+ const selector = {}; // TODO
|
|
|
|
+
|
|
|
|
+ return [hooks, dispatch, selector];
|
|
|
|
+}
|