GithubHelp home page GithubHelp logo

kripod / redux-for-beginners Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 8 KB

An opinionated set of good practices to minimize the effort required to set up and maintain a Redux project.

License: MIT License

HTML 3.49% JavaScript 96.51%

redux-for-beginners's Introduction

Redux for Beginners

This project-based tutorial aims to provide an opinionated set of good practices to minimize the effort required to set up and maintain a Redux project which uses React as its user interface library.

Learn less, do more

Learning the philosophy behind Redux can be exhausting, especially when it comes to terminology or separation of concerns.

Organizing actions, reducers, components and containers

Contrary to most of the official Redux examples, in this project, files are not organized by nature, but by domain.

Maintaining code coherence while separating concerns

Action types, action handlers, action creators, action dispatchers, and so on. There are multiple approaches available to reduce the confusion while improving code reuse and modularity.

  • Store-connected components can represent and alter the globally stored state of an application. Their state representation should be stored in a file separate from the component.
  • Purely presentational components cannot access global application state, but may optionally have a local view state.

Future-proof solutions with performance in mind

  • React-based web frontend projects can be set up with zero configuration by create-react-app.
  • The usage of functional React components is preferred over their class-based counterparts. In this project, the syntax which functional components are declared by not only provide possible gains in performance, but are compatible with the proposed syntax of stateful React components.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.