Skip to content

Instantly share code, notes, and snippets.

View meandmax's full-sized avatar
🤠
Be water my friend

Maximilian Heinz meandmax

🤠
Be water my friend
View GitHub Profile
@meandmax
meandmax / .gitconfig
Last active February 14, 2019 00:54 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Max Heinz
email = heinzmaximilian@gmail.com
username = meandmax
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[web]
browser = google-chrome
@meandmax
meandmax / react-lifecycle-cheatsheet.md
Created October 2, 2018 06:36 — forked from bvaughn/react-lifecycle-cheatsheet.md
React lifecycle cheatsheet

React lifecycle cheatsheet

Method Side effects1 State updates2 Example uses
Mounting
componentWillMount Constructor equivalent for createClass
render Create and return element(s)
componentDidMount DOM manipulations, network requests, etc.
Updating
componentWillReceiveProps Update state based on changed props