Tech corner - 28. March 2024

March web tech roundup

header_image

Hello readers!

Just as we do every month, we've pulled together a selection of articles from the world of web tech that we think are worth sharing…

Learn how to set sizes properly, get insights into printing from React apps, find out what is new in TypeScript 5.4, and much more.

Happy reading!

What’s new in TypeScript 5.4

The new version of TypeScript brings a set of improvements that includes preserving type narrowing in closures, a new NoInfer utility type for the instances when you don’t want to infer types, and the auto-importer now supporting subpath imports in package.json. To find out more about these, plus all the other improvements, read the extensive release notes.

CSS size units and accessibility 

In this article, Josh W. Comeau describes various ways of defining elements and font sizes in your applications, and the side effects it can bring in terms of accessibility. If you want to understand how users can break your app layout by increasing the font size, this article is for you.

Why is method shorthand bad in TypeScript?

In TypeScript, you can define a method in the interface either with longer object property syntax, or shorthand syntax by removing the double column. Matt Pocock explains why the method shorthand syntax is bad, even though they both look almost identical.

Printing with React

To initiate printing from your application you don’t need any special library. Using the global print method is enough to open the native print dialogue. However, this approach lacks flexibility. This is where the React-to-print library comes to the rescue. Learn what it offers and how to use it in this blog post.

Improving Tailwind with Oxide

Last year, the Tailwind CSS creator – Adam Wathman – introduced Tailwind Oxide as a utility to kick-start Tailwind integration into projects. Oxide is an opinionated utility that releases the burden of configuring the Tailwind utility stack when adding it to an application. Find out more about Tailwind Oxide in this article.

blog author
Author
Jozef Radonak

I am at the forefront of Hotovo's web technology stream, striving to stay up to date with the latest web technologies and trends, and always willing to help others master this ever-evolving industry. Outside of the world of web technology, I am an avid hiker and devoted coffee lover. I take great pleasure in seeking out new coffee shops and trying different coffee blends. I am all about innovation, whether in technology or in my cup of coffee!

Read more

Contact us

Let's talk

I hereby consent to the processing of my personal data.