If you’re anything like me, when you’re at the office, you live, breathe, and die by Slack. It’s become such a part of many of our work lives, that on the rare occasion when it does go down, we panic and the world seems to come to a screeching halt.
But don’t fret. Slack is alive an well, and we’re here to discuss happier times.
In this article, I’d like to share a few Pro Tips that I’ve picked up along the way — many of which I’ve tweeted, or dropped in the
#random channel for my colleagues at work to use — but I’ve collected them and presented them here for you to use. …
Let’s say for a moment that you are a component developer and you maintain, or are writing an OSS React package. As you don’t control the application itself, a best practice if for you to specify
react as a
peerDependency in your
package.json, something file like this.
What this specifies is that your package relies on
react versions 15.0.0 …
Back in the ES5 days,
var was the only means at our disposal to create variables. ES6 introduced the block-scoped
In my experience, I see very few situations where you should use
let. Sure, it has its place (like a counter, for example), but for most applications
const is better suited. You’ll soon see why.
Take the following common use case. It renders the
amount in red if negative, otherwise, it will be in black. …