Skip to content

Instantly share code, notes, and snippets.

View zcmgyu's full-sized avatar
😷

Long Nguyen zcmgyu

😷
  • HumanCrest Co., Ltd
  • Vietnam & Japan
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zcmgyu
zcmgyu / CHANGELOG.md
Created December 28, 2017 17:10 — forked from dispix/CHANGELOG.md
OAUTH2 Authentication and token management with redux-saga

Revision 5

  • Fix error parsing

Revision 4

  • Add missing yield in the login function

Revision 3

@zcmgyu
zcmgyu / React + ESLint + Babel + Airbnb Javascript Style Guide + Prettier + VS Code (2021).md
Last active August 14, 2023 11:44
React + ESLint + Babel + Airbnb Javascript Style Guide + Prettier + VS Code

Setup

Setup ESLint, Pritter, Airbnb JS Style in Create React App project with VS Code editor

  • Plugins: Prettier, Html, React Hooks

Prerequisites

Latest node, VSCode, npm, yarn

@zcmgyu
zcmgyu / get-model-type.spec.ts
Created March 19, 2024 13:43 — forked from samtgarson/get-model-type.spec.ts
Custom Safe Reference type in Mobx State Tree
import { types } from 'mobx-state-tree'
import { getModelType, getModelTypes } from './get-model-type'
const TestModel = types.model('models', {
id: types.identifier,
name: types.literal('frodo'),
})
const TestModel2 = types.model('other-models', {
id: types.identifier,