It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Generated with Atomizr – https://atom.io/packages/atomizr | |
| ".source.js": | |
| # Redux Course Snippets | |
| "Redux Connect Skeleton": | |
| prefix: "rc" | |
| body: ''' | |
| import { bindActionCreators } from 'redux' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { isEqual } from "underscore"; | |
| /** | |
| * HOC for diagnosing unnecessary renders and identifying faulty selectors | |
| * | |
| * Adds a logger function to a component that lists all changed props | |
| * Also checks if changed props are deeply equal | |
| * | |
| * Usage: Decorate the component you are investigating with renderDoctor: |
Author(s): Austin Clements, Rick Hudson
Last updated: 2016-10-18
Discussion at https://golang.org/issue/17503.
OlderNewer