Show Menu
Cheatography

React.js ES6 Cheat Sheet (DRAFT) by

Most common techniques for React.js on ES6

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Classes

Create Component
export default class Compon­entName extends Component
Constr­uctor
constr­uct­or(){}
Render
render(){ return( JSX ) }
 

Import

React
import React, { Component } from 'react';
Import Component
import Compon­entName from './Com­pon­ent­Name'