Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
React Component Sublime Snippet
<content><![CDATA[import React, { Component } from 'react'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
const mapStateToProps = (state, ownProps) => {
return {
location: ownProps.location
class ${1:MyComponent} extends Component {
render() {
return (
<div className="$1">
export default withRouter(connect(mapStateToProps)($1))
<description>React Component boilerplate</description>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment