Skip to content

Instantly share code, notes, and snippets.

View antmdvs's full-sized avatar

Tony Davis antmdvs

View GitHub Profile
@antmdvs
antmdvs / considerations.md
Last active December 8, 2016 22:48
React Component Selection Considerations

Footprint

  1. What’s the minified bundle size of the component/library?
  2. For a given component library, can we just import a single module if we only need that one component?

import { Component1 } from ‘widgets/libs/component1’;

instead of

import * as components from ‘widgets’;

@antmdvs
antmdvs / keybindings.json
Created September 26, 2016 19:25
Visual Studio Code keybindings that swap insertLineBefore/insertLineAfter to be consistent with Visual Studio Proper
[
// swap these to be consistent with the defaults for Visual Studio proper
{
"key": "ctrl+enter",
"command": "editor.action.insertLineBefore",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+enter",
"command": "editor.action.insertLineAfter",