Skip to content

Instantly share code, notes, and snippets.

// 1. output for snippet
for (var i = 0; i < 10; i++) {
setTimeOut(() => {
console.log(i);
});
}
// box model - calcuclate total width
div {
width: 320px;
[
{
"age": 0,
"id": "motorola-xoom-with-wi-fi",
"imageUrl": "img/phones/motorola-xoom-with-wi-fi.0.jpg",
"name": "Motorola XOOM\u2122 with Wi-Fi",
"snippet": "The Next, Next Generation\r\n\r\nExperience the future with Motorola XOOM with Wi-Fi, the world's first tablet powered by Android 3.0 (Honeycomb)."
},
{
"age": 1,
@WinDevInd
WinDevInd / tabcontract.js
Last active January 15, 2018 06:43
Tab component Contract
const _tabHeader:{
selected: <div>{tab}</div>,
notSelected: <div>{tab}</div>
};
const _tabContent = <ReviewsList
reviews={ _reviews }
loading={ this.state.showLoader }/>;
_tabContents.push(
{