Skip to content

Commit

Permalink
update example with remote flex-reducer package
Browse files Browse the repository at this point in the history
  • Loading branch information
IpShot committed Jul 8, 2020
1 parent 927dfe0 commit 89b5295
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 240 deletions.
7 changes: 6 additions & 1 deletion examples/todos/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions examples/todos/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "todoapp-with-hux",
"name": "todoapp-with-flex-reducer",
"version": "1.0.0",
"author": "Roman Zhernosek <[email protected]>",
"description": "A todo list app using Hux.",
"description": "A todo list app using Flex Reducer.",
"main": "src/index.js",
"scripts": {
"start": "react-scripts start"
},
"dependencies": {
"classnames": "^2.2.6",
"flex-reducer": "^1.0.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/todos/src/TodoApp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { useFlexReducer } from './flex-reducer';
import { useFlexReducer } from 'flex-reducer';
import AddTodo from "./components/AddTodo";
import TodoList from "./components/TodoList";
import VisibilityFilters from "./components/VisibilityFilters";
Expand Down
4 changes: 2 additions & 2 deletions examples/todos/src/actions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dispatch } from './flex-reducer';
import { uniqueType as unique } from './flex-reducer';
import { dispatch } from 'flex-reducer';
import { uniqueType as unique } from 'flex-reducer';

let nextTodoId = 0;

Expand Down
2 changes: 1 addition & 1 deletion examples/todos/src/components/TodoList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { useSelector } from "../flex-reducer";
import { useSelector } from "flex-reducer";
import Todo from "./Todo";
import { VISIBILITY_FILTERS } from "../constants";

Expand Down
2 changes: 1 addition & 1 deletion examples/todos/src/components/VisibilityFilters.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import cx from "classnames";
import { useSelector } from "../flex-reducer";
import { useSelector } from "flex-reducer";
import { setFilter } from "../actions";
import { VISIBILITY_FILTERS } from "../constants";

Expand Down
145 changes: 0 additions & 145 deletions examples/todos/src/flex-reducer/flexReducer.js

This file was deleted.

12 changes: 0 additions & 12 deletions examples/todos/src/flex-reducer/index.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/todos/src/flex-reducer/utils/batch.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/todos/src/flex-reducer/utils/batch.native.js

This file was deleted.

64 changes: 0 additions & 64 deletions examples/todos/src/flex-reducer/utils/shallowEqual.js

This file was deleted.

9 changes: 0 additions & 9 deletions examples/todos/src/flex-reducer/utils/uniqueType.js

This file was deleted.

0 comments on commit 89b5295

Please sign in to comment.