Latest posts

React with TypeScript for Beginners

2021-02-22 React

It’s 2021 and TypeScript’s support for React apps improved by a lot. If you are new to TypeScript and React, you can learn from Amir Ghezelbash how to develop your first React app. In his tutorials, Amir starts from scratch and shows you on a weekly basis how to improve your React and TypeScript skills.

Continue reading →

Docker Desktop: Hardware assisted virtualization

2021-01-12 Hands-On

There are TypeScript projects, such as @nestjsx/crud, which use Docker container images. Docker containers simplify application setups (like databases, caches, etc.) by providing pre-configured images in a virtual environment. Virtualization takes a lot of computing power and can be accelerated by hardware-assisted virtualization.

Continue reading →

Upgrade to React Router v6

2021-01-02 React

React Router Version 6 is great for TypeScript programmers because it ships with type definitions. Another great feature is the useRoutes hook, which simplifies routing setups in your functional React components. You can also render child components by using the new Outlet API.

Continue reading →

Setup Webpack HMR with NestJS and React

2020-12-21 React

Programmatically setup a Nest.JS server with Webpack’s Hot Module Replacement (HMR) to host a React web application.

Continue reading →

Setup Webpack HMR with Express server and React

2020-12-20 React

Programmatically setup an Express server with Webpack’s Hot Module Replacement (HMR) to host a React web application.

Continue reading →

Use React with TypeScript

2020-12-16 React

React and TypeScript are a great team because TypeScript supports the JSX syntax. This tutorial will show you code examples on how to type your React web application, so that you can benefit from strong typing in your UI components.

Continue reading →

Understanding Generators, Iterators and Iterables

2020-11-30 Hands-On

A generator function returns a lazy iterator, which generates data only on demand. In the following tutorial, Benny will show you how to code your own generator functions in TypeScript. You will learn the differences between iterators and iterables and how to refactor your code to use generator functions.

Continue reading →

When to use static methods in TypeScript?

2020-10-07 Best Practices

When developing class functions that don’t rely on an internal state, it’s a good idea to turn them into static methods. This can be easily done by adding the keyword static to your function’s declaration.

Continue reading →

Fastest way to set up a TypeScript project with Node.js (npm)

2020-08-04 Hands-On

Setting up a TypeScript project with Node.js takes only a few minutes. Here is how to do it the fastest way by just using npm and yarn.

Continue reading →

error TS2307: Cannot find module events

2020-06-03 Hands-On

Extending the EventEmitter class from Node.js might cause error TS2307. Here is how to fix it.

Continue reading →