GithubHelp home page GithubHelp logo

umair113 / advanced-react-redux-jest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fouadbhatti/advanced-react-redux-jest

0.0 0.0 0.0 203 KB

Highly testable and modular sample react redux app with advanced concepts

License: MIT License

HTML 4.72% CSS 5.98% JavaScript 89.29%

advanced-react-redux-jest's Introduction

Advanced-react-redux-jest

Testable and modular sample react redux app with advanced concepts.

Introduction

This sample application allows you to add, remove, star friends. Also incorporates pagination if there are more than 2 friends. It includes the following features:

Testing - Using Enzyme, Jest, Puppeteer

  • Comprehensive unit tests covering all parts of application such as reducers, actions, components etc
  • Redux Store Flow Integration test
  • Using Jest to mock functions and modules
  • Using enzyme to test stateful components state + their actions/behaviors
  • Snapshot testing for all presentational components

Architecture & Concepts

  • Structured into testable presentational and container components
  • State managed with redux
  • Higher order components
  • Custom redux middleware
  • React redux view
  • Immutable state with immutable.js
  • Binding action creators
  • React SSR - server side rendering
  • React router
  • Higher order reducers
  • Normalizing state shape
  • Wrapping components in Error boundaries to catch errors omitted from components rendering
  • React portals for modal boxes
  • Lifting state Up
  • Form handling
  • React refs + forward ref
  • Performance optimization - react profiling / React.PureComponent - shouldComponentUpdate / React.memo functional components
  • Strict mode for highlighting potential problems in an application <React.StrictMode>
  • Uncontrolled components / refs
  • Hooks using state and other react features without writing a class - React v16.7.0-alpha
  • Hot reloading and time Travel
  • Redux reselect selectors for encapsulation and performance
  • Lazy loading components
  • Using recompose library for using state in functional components, conditional rendering/branching, lifecycle hooks, composing higher order components

Installation

yarn install
yarn start
Testing: yarn test
open http://localhost:3000

advanced-react-redux-jest's People

Contributors

fouadbhatti avatar

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.