Skip to content

Instantly share code, notes, and snippets.

View pasupuletics's full-sized avatar

Chandrasekhar Pasupuleti pasupuletics

  • ServiceNow
  • Hyderabad
View GitHub Profile
@pasupuletics
pasupuletics / 0 basics.md
Created February 14, 2018 07:05 — forked from threepointone/0 basics.md
css-in-js

A series of posts on css-in-js

0. styles as objects

First, an exercise. Can we represent all of css with plain data? Let's try.

let redText = { color: 'red' };
@pasupuletics
pasupuletics / Readme.md
Last active April 16, 2017 05:38
ReatJs Presentational and Container Components

A container does data fetching and then renders its corresponding sub-component. That’s it.

“Corresponding” meaning a component that shares the same name:

StockWidgetContainer => StockWidget
TagCloudContainer => TagCloud
PartyPooperListContainer => PartyPooperList

Why containers?

@pasupuletics
pasupuletics / Global.sublime-settings
Last active April 13, 2017 06:35
excluding node_modules from Sublime Text 2
// Place user-specific overrides in this file, to ensure they're preserved
// when upgrading
{
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"]
}