react cheat sheets

JavaScript
Open this for a surprise!
  
https://bit.ly/2JzbP11
https://attachments.convertkitcdnn2.com/211885/bed3971e-6abb-4e8a-8840-de48cbe847e3/The_React_for_2020_Cheatsheet.pdfcomponentWillMount() {
  // invoked once.
  // fires before initial 'render'
}render() {
  return <div />;
}componentDidMount() {
  // good for AJAX: fetch, ajax, or subscriptions.

  // invoked once (client-side only).
  // fires before initial 'render'
}constructor(props) {
  super(props);
  this.state = {
    list: props.initialList
  };
}

// where props aren't used in constructor

constructor() {
  super();
  this.state = {
    list: []
  };
}
Source

Also in JavaScript: