Redux: there are too much error!

Created on 13 Jun 2017  路  10Comments  路  Source: reduxjs/redux

Most helpful comment

update default module

index.jsx/index.js

import todoApp from './reducers'; === import todoApp from './reducers/index';

export {todoApp}; & import {todoApp} from './reducers';

export default todoApp; & import todoApp from './reducers';

All 10 comments

update default module

index.jsx/index.js

import todoApp from './reducers'; === import todoApp from './reducers/index';

export {todoApp}; & import {todoApp} from './reducers';

export default todoApp; & import todoApp from './reducers';

why ignore ; symbol

bad codes reading & bad codes formatting

const getVisibleTodos = (todos, filter) => {
    switch (filter) {
        case 'SHOW_ALL':
            return todos;
        case 'SHOW_COMPLETED':
            return todos.filter(t => t.completed);
        case 'SHOW_ACTIVE':
            return todos.filter(t => !t.completed);
    }
};

lost default case!

        default:
            return todos;

Nobody like this UX!

I'm sorry, I'm very confused at what you're trying to say here. You've pasted a bunch of screenshots, but it's not clear what specific problems you're trying to report.

I realize that English might not be your first language, but could you please explain in more detail what specific problems you're reporting?

Maybe we have outdated code somewhere that causes lint issues with CRA?

Actually, what I mean is that maybe you should update your demo codes to keep up with REACT and writing codes in a better , easy reading way!

@xgqfrms-GitHub Please submit separate issues for each unrelated problem you encounter, with adequate description of the problem. Piling them all into one issue makes discussion and resolution tracking difficult. It is also unnecessary and poor etiquette to tag repository owners in the initial post.

All right, have good luck!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbri7357 picture jbri7357  路  3Comments

ramakay picture ramakay  路  3Comments

rui-ktei picture rui-ktei  路  3Comments

vslinko picture vslinko  路  3Comments

ilearnio picture ilearnio  路  3Comments