Skip to content

Instantly share code, notes, and snippets.

View marg51's full-sized avatar
🎯
Focusing

Laurent M marg51

🎯
Focusing
View GitHub Profile
@marg51
marg51 / .vscode⁄settings.json
Created February 5, 2017 17:57
create-react-app with vscode & typescript
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"src/**/*.jsx": true
}
}
@marg51
marg51 / View.jsx
Created April 20, 2017 09:10
React — Decorators and how to easily manage loading states
import React, {Component} from 'react';
import {promiseable, renderWhenLoaded} from "./promise"
export default class View extends Component {
constructor() {
super()
this.state = {
data: {a: 1}
}