Skip to content

Instantly share code, notes, and snippets.

View Chun-Lin's full-sized avatar

Gary Wu Chun-Lin

View GitHub Profile
@Chun-Lin
Chun-Lin / enzyme_render_diffs.md
Created July 5, 2018 08:05 — forked from fokusferit/enzyme_render_diffs.md
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@Chun-Lin
Chun-Lin / appEntryPoint.js
Created October 24, 2019 03:10 — forked from markerikson/appEntryPoint.js
Webpack React/Redux Hot Module Reloading (HMR) example
import React from "react";
import ReactDOM from "react-dom";
import configureStore from "./store/configureStore";
const store = configureStore();
const rootEl = document.getElementById("root");