The Bold Blog

Latest

State callbacks in React

This a very quick post to highlight a feature in React that is frequently overlooked (at least by me 😊). The setState(), replaceState()…, and forceUpdate() methods of React.Component all take an optional callback function that is called when a state “transaction” is completed. Note the implication here (supported by explicit documentation) is that setState() and replaceState() are not synchronous updates of the state. ¶ One thing that was not obvious from the documentation is that these callbacks are called with no arguments, but with this set to the component instance.
Go to the profile of Emil Ong
Emil Ong1 hr ago

Free SSL certificates without placing a file on your server using AWS Route53

This article shows you how to get a free Let’s Encrypt certificate for your domain when it’s not convenient for you to place a file on your…HTTP server for the challenge and you use Route53 as your DNS provider. ¶ For the impatient ¶ If you already know what all this means and/or you just want to get on with it, here you go: ¶ Prerequisites ¶ You have Ruby installed. ¶ You have your AWS credentials set up in your environment (either using the AWS CLI’s aws configure command or in environment variables). ¶ You have a Route53 hosted zone in place for your domain.
Go to the profile of Emil Ong
Emil OngMar 31
Connecting Redux to your API

Connecting Redux to your API

I started using Redux last summer and one of the first things I needed to do was connect it to a backend. The awesome Redux docs have an…
Go to the profile of Emil Ong
Emil Ong4 days ago
Latest
Go to the profile of Emil Ong
Emil OngMar 306 min read

Declarative Dependencies for Unit Testing Node.JS Services

As a former Rails & Java developer and a relatively new server-side Javascript developer, there are many things I love about my new environment, but a number of things I have missed as well. As a fan of TDD and unit testing in…

Read more…
1 response
About
The Bold Blog
The Bold Blog

Updates from the Bold team

More information

Followers
Elsewhere
More stories →About The Bold Blog