Skip to content

Instantly share code, notes, and snippets.

View sunil-bagde's full-sized avatar

Sunil Bagde sunil-bagde

View GitHub Profile
@sunil-bagde
sunil-bagde / MyComponent.js
Created March 11, 2018 11:42 — forked from joecritch/MyComponent.js
Passing specific props in React / JSX
class MyComponent extends React.Component {
render() {
const {location, todos, users} = this.props;
//
// ... do things with your variables!
//
return (
<MyChild {...{location, todos, user}} />
// equivalent to:
// <MyChild location={location} todos={todos} user={user} />
#
# sublimelinter.py
# Part of SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ryan Hileman and Aparajita Fishman
#
# Project: https://github.com/SublimeLinter/SublimeLinter3
# License: MIT
#