Skip to main content


Showing posts from February, 2019

Warren Buffett: “Really Successful People Say No To Almost Everything”

When I tell people that Warren Buffett follows the  5-Hour Rule  and spends  80% of his time reading and thinking , they have an immediate and predictable reaction: “Well, he can do that because he’s Warren Buffett, one of the richest people in the world. I could never do that.” While this response may help people feel better about themselves, it certainly won’t make them smarter. Because the reality is: Buffett has spent most of his time reading and thinking since he was in grade school. Having more money or managing a large company doesn’t magically give you free time. Having free time is never the default. People don’t just fall into huge blocks of free time unless they retire. Rather, free time is the result of strategy. It’s the result of looking at time differently. Curious about Buffett’s unique strategies, I’ve read several books about him, read most of his annual letters to stockholders, and watched nearly all of his interviews. And make no mistake about it… behind

Understanding Fragments in React

This is another post in our React Series, we have learned many React concepts in our past posts in our React series: Default props Prop types Render props Higher-order components Context In this post, we will look at another common issue in React. Read on. As always, when working with your React components, I’d advise making them reusable with  tools like  Bit  so that you won’t have to rewrite them every time. It also nice to share your components organized in a visual gallery, right? Problem Statement Have you tried rendering multiple React components like this: class ParentC extends React.Component { render() { return ( <ChildC /> <ChildC /> ) } } class ChildC extends React.Component { render() { return ( <h1> Child Component </h1> ) } } or render a list of nodes like this: class ChildComponent extends React.Component { ren