bherrero
4/12/2017 - 9:42 AM

React Class Snippet for writing components

React Class Snippet for writing components

<snippet>
	<content><![CDATA[
import React from 'react';

class $1 extends React.Component {
	render() {
		return (
			$2
		);
	}
}

$1.propTypes = {
	// propName: React.PropTypes.(propType).(isRequired)
};

export default $1;
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<tabTrigger>ReactClass</tabTrigger>
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	<scope>source.js</scope>
</snippet>