Posts matching tag: react

Optional Chaining in JavaScript and React

13 December 2021

Optional Chaining is a newer JavaScript feature, introduced in ES2020. Since I discovered it, I’ve been using it quite a lot, because it provides a simple, clean way of dealing with a common issue: object properties which could either be present or missing. Below is an object with several layers of nested properties. In it… Read More »