Skip to content

Instantly share code, notes, and snippets.

View cynx's full-sized avatar
👓
blow

cynx cynx

👓
blow
View GitHub Profile
@cynx
cynx / reactClassComponent
Created February 18, 2017 18:03
React / Redux Templates for WebStorm
import React, {Component, PropTypes} from 'react';
class $NAME extends Component {
constructor(props, context){
super(props, context);
}
render(){
return (
<div>
</div>
@Component({
selector: 'add-story-form',
template: `
<div class="container">
<h1>New Story</h1>
<form [formGroup]="newStory"
(submit)="submit($event)"
(success)="onSuccess()"
(error)="onError($event)"
connectForm="newStory">