Skip to content

Instantly share code, notes, and snippets.

View hyb175's full-sized avatar

Yingbai He hyb175

  • MyCase
  • San Diego
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hyb175 on github.
  • I am yingbaihe (https://keybase.io/yingbaihe) on keybase.
  • I have a public key ASBZynqVN5Wpre99Mhltg7S3CK2cVojPWiOSu_Mhp3WJjgo

To claim this, I am signing this object:

@hyb175
hyb175 / Async-Redux-Workshop-Notes.md
Created August 3, 2016 21:30
ForwardJS Conference Workshop.

Flux has a lot different concerns and not easily approachable by smaller projects.

Module 1: Redux

  • manages state changes via pure functions and a uni-directional data flow
  • ispired by the Elm Architecture
  • Remove business logic out of React View.

Redux is not a complete architecture

  • Redux does not have async out of the box
@hyb175
hyb175 / realmMock.js
Last active June 13, 2024 02:45
Realm Mock for jest
// https://github.com/realm/realm-js/issues/370#issuecomment-270849466
export default class Realm {
constructor(params) {
this.schema = {};
this.callbackList = [];
this.data = {};
this.schemaCallbackList = {};
params.schema.forEach((schema) => {
this.data[schema.name] = {};
});