Skip to content

Instantly share code, notes, and snippets.

# Parts of a Class
The class name
The attributes (properties of the class). The properties have this format:
```
-name: string
-age: int
-id: -int

ECMAScript 6 (ES6)

The technical name of the JavaScript language is ECMAScript. ECMA stands for the European Computer Manufacturers Association. This is the organization that oversees the standardization process of the JavaScript language.ECMAScript version 6 (ES6 for short) is a newer version of JavaScript. In this module, you will learn about some of the features of ES6 including:

  • Imports/Exports
  • Default function arguments
  • The let and const keywords
  • Template literals
  • The rest parameter

Start a new node app:

npm init.

In package.json set a key/value of "private":true AND set scripts to {"test":"jest"}

The Context API

The Context API allows you to reference state set on a higher level component from a lower level component. The Context API replaces "prop drilling" as a simpler way to reference state from nested components.

Create a Provider

Set a component named Provider (technically you can name it anything) at the top level component of your app. Provider is the name that is conventionally used for this component.

SQL databases come in different "flavors". This cheatsheet references MYSQL commands.

A database is composed of tables that contain rows of data.

A table acts as a template for real-world data.

@wktdev
wktdev / react.md
Last active September 23, 2019 07:54

React Tutorial

These notes attempt to distil the totality of the React library down to a collection of foundational concepts that you need to build basic React applications. The provided code examples and explanations are intended to be as minimalistic as possible.

  • What is React?
  • Setup (non-Node.JS)
  • Components
  • Nesting Components
  • Component Specific CSS
Assignment
You've been recruited by a young startup called ExpressFood. ExpressFood delivers their own high-quality meals to residences in less than 20 minutes with their team of delivery bikers. 🚲
ExpressFood vous livre à domicile en moins de 20 minutes !
ExpressFood delivers food to you in less than 20 minutes!
Every day, ExpressFood creates 2 main dishes and 2 desserts at its headquarters with the help of its experienced chefs. These 2 main dishes are stored in a cold setting and then given to delivery people who bike to the food to the residence that requested it...in less than 20 minutes!
On its website, ExpressFood allows clients to order one or multiple dishes and desserts. There are no fees for delivery. Menu items change every day.
Once a client submits their order, they see a page displaying if the order has gone out for delivery yet, as well as an estimate for their meal's arrival time.

ECMAScript 6 (ES6)

The technical name of the JavaScript language is ECMAScript. ECMA stands for the European Computer Manufacturers Association. This is the organization that oversees the standardization process of the JavaScript language.ECMAScript version 6 (ES6 for short) is a newer version of JavaScript. In this module, you will learn about some of the features of ES6 including:

  • Imports/Exports
  • Default function arguments
  • The let and const keywords
  • Template literals
  • The rest parameter
# ECMAScript 6 (ES6)
The technical name of the JavaScript language is ECMAScript. ECMA stands for the European Computer Manufacturers Association. This is the organization that oversees the standardization process of the JavaScript language.ECMAScript version 6 (ES6 for short) is a newer version of JavaScript. In this module, you will learn about some of the features of ES6 including:
* Imports/Exports
* Default function arguments
* The let and const keywords
* Template literals
* The rest parameter