JS


5 June 2022

Interfaces over Unions

PHPJSJAVASCRIPTTYPESCRIPT

Unions have started coming into PHP with the release of version 8. We have been using them a bit in typescript and have found that opting for an interface is much better. Interfaces clean up the flow of your code and make things much more readable by eliminating the need for many if statements.

Read more →
10 June 2019

ReactJS Router Lazy Loading Pages

REACTJSTYPESCRIPT

When creating a single page app application with [[ReactJS|react]] router. Your bundle size can get quite big when having quite a few pages. Loading all this in one can hinder your performance.

Read more →
1 January 2019

ES6 Destructuring Objects

JSNODEES6

With es6 deconstructing objects gives us a nice way of extracting keys of objects into variables. Combined with the rest operator this comes in very useful when you need to unset an item or two in an object.

Read more →