Skip to content

Instantly share code, notes, and snippets.

View rhiokim's full-sized avatar
:octocat:
I'm focusing on somewhere.

Rhio Kim rhiokim

:octocat:
I'm focusing on somewhere.
View GitHub Profile
"prettifySymbolsMode.adjustCursorMovement": true,
"prettifySymbolsMode.substitutions": [{
"language": "typescriptreact",
"substitutions": [
{
"ugly": "function",
"pretty": "ƒ",
"pre": "\\b",
"post": "\\b"
},
@rhiokim
rhiokim / gist:f1044879f0a828f390a9a022e74c470f
Last active November 9, 2019 13:07
What's React Suspence & Concurrent Mode?
## Suspence?
* what?
- Beyond React 16, https://www.youtube.com/watch?v=nLF0n9SACd4
* why?
* how?
## Concurrent Mode?
* what?
@rhiokim
rhiokim / minus.js
Last active December 11, 2017 05:31
babel-plugin-gist
export default (a, b) => a - b
@rhiokim
rhiokim / StatelessComponent.js
Last active November 27, 2017 04:29
Flowtype fundamentals with React.js Raw
// @flow
import React from 'react'
type PropsA = {
children?: React.Node
}
const A = (props: PropsA) => (
<div>
{props.children}
@rhiokim
rhiokim / BasicComponent.js
Last active November 27, 2017 04:00
Flowtype fundamentals with React.js
// @flow
import React from 'react'
type Props = {
foo: number,
bar: string,
disabled: boolean,
children?: React.Element<any>
}
@rhiokim
rhiokim / quote.js
Created August 1, 2017 08:10 — forked from aaronshaf/quote.js
annotating a stateless function component in flowtype
/* @flow */
import React from 'react'
type QuoteProps = {
message: string,
quote: string,
name: string,
photoUrl: string,
photoAlt: string
@rhiokim
rhiokim / 2017-05-16.md
Last active May 16, 2017 03:08
Update TODO list - latest updated at May 16th, 12:08:51
  • call mom
  • visit bank
@rhiokim
rhiokim / .eslintrc
Created July 30, 2016 04:52 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
@rhiokim
rhiokim / release-note.md
Created March 27, 2016 08:11
Haroopad release note

Haroopad {{version}}

Issue Number Description
New Features
{{ticket}} {{ticket-name}}
Bugs
{{ticket}} {{ticket-name}}
Enhancements