Giter Site home page Giter Site logo

the-road-to-learn-react / react-interval-setstate-unmounted-component-performance Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 4.0 1.5 MB

Example on removing intervals (or listeners) on unmounted React Components

Home Page: https://roadtoreact.com

HTML 19.12% JavaScript 76.32% CSS 4.57%
react reactjs warning setstate

react-interval-setstate-unmounted-component-performance's Introduction

react-interval-setstate-unmounted-component-performance

Build Status Slack Greenkeeper badge

Showcasing how to remove intervals (or listeners) on unmounted React components. Read more about it.

Installation

  • git clone [email protected]:the-road-to-learn-react/react-interval-setstate-unmounted-component-performance.git
  • cd react-interval-setstate-unmounted-component-performance
  • npm install
  • npm start
  • visit http://localhost:3000

react-interval-setstate-unmounted-component-performance's People

Contributors

greenkeeper[bot] avatar rszalski avatar rwieruch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-interval-setstate-unmounted-component-performance's Issues

Proposal - Create a CodeSandbox link to this project

Hey!

I was reading your article when I came across this repo. Wanted to play a bit with the code.

I think it would be great if the README.md would link directly to a working CodeSandbox (or any other online-ide-tool) project so that cloning/installing/starting is not necessary.

CodeSandbox supports creating sandboxes directly from Github, here's the example I made: https://codesandbox.io/s/github/the-road-to-learn-react/react-interval-setstate-unmounted-component-performance

In order to create the sandbox click: "Create Sandbox" -> "Import from GitHub". See the pic.

Zrzut ekranu 2019-06-14 15 59 19

If you were to create such sandbox from master as of now, CodeSandbox complains about .prettierrc but the fix is here: #7

Thanks!

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.