npm i THIS_URL
All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.
A number of methods in React are assumed to be "pure".
On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.
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
| /** | |
| * | |
| * DEPRECIATED: Please use the updated type definitions: | |
| * Service Worker Typings to Supplement lib.webworker.d.ts | |
| * https://gist.github.com/tiernan/c18a380935e45a6d942ac1e88c5bbaf3 | |
| * | |
| * | |
| * Copyright (c) 2016, Tiernan Cridland | |
| * | |
| * Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby |
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
| /** | |
| * Update the protected weather column. | |
| */ | |
| function onOpen() { | |
| var spreadsheet = SpreadsheetApp.getActive(); | |
| var menuItems = [ | |
| { | |
| name: "Update weather column", | |
| functionName: "updateWeather" |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
NewerOlder