Cannot use import statement outside a module [React TypeScript Error Solved]

When building a web application, you may encounter the SyntaxError: Cannot use import statement outside a module error. This error might be raised when using either JavaScript or TypeScript in the back-end. So you could be working on the client side with React, Vue, and so on, and still

Read More

How to Build a Snake Game with React, Redux, and Redux Saga

In this article, I am going to walk you through creating a snake game using a React application. It is a simple 2d game built using TypeScript, and we won’t need to use any third-party graphics libraries to build it. This is what we’ll make in this tutorial: Snake

Read More

How to build a simple game in the browser with Phaser 3 and TypeScript

I’m a developer advocate and a backend developer, and my frontend development expertise is relatively weak. A while ago I wanted to have some fun and make a game in a browser; I chose Phaser 3 as a framework (it looks quite popular these days) and TypeScript as a language

Read More

Make your React components great with TypeScript mapped and conditional types

by Deepu K Sasidharan Make your React components great with TypeScript mapped and conditional types You’ve probably heard about TypeScript. You may have heard someone claiming how great type safety is. TypeScript is great. As someone who hates transpiling his code, I would definitely do it with TypeScript if I

Read More

How to wrap your head around Typescript generics

by Nadeesha Cabral How to wrap your head around Typescript generics Photo by Hannah Wei [https://unsplash.com/photos/aso6SYJZGps?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText] on Unsplash [https://unsplash.com/search/photos/study?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText] Sometime back when the “Flow vs. Typescript” debate was raging, I had to pick a side. And I picked Typescript. Fortunately, that was one of the better decisions I made.

Read More

Intermediate TypeScript and React Handbook – How to Build Strongly Typed Polymorphic Components

Hey everyone! 😎 In this detailed guide, I’ll show you how to build strongly typed Polymorphic React components with Typescript. If you prefer to read the entire guide in a single PDF document, you can download the accompanying free PDF [https://www.ohansemmanuel.com/books/how-to-build-strongly-typed-polymorphic-react-components] . You can download the eBook for free [https://www.ohansemmanuel.com/books/how-to-build-strongly-typed-polymorphic-react-components]

Read More

How to master advanced TypeScript patterns

by Pierre-Antoine Mills How to master advanced TypeScript patterns Learn how to create types for curry and Ramda Photo by sergio souza [https://unsplash.com/photos/2jXkA7GAz9M?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText] on Unsplash [https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText] Despite the popularity of currying and the rise of functional programming (and of TypeScript), it is still a hassle today to make use

Read More

From YAML to TypeScript: a developer’s view on cloud automation

The rise of managed cloud services, cloud-native, and serverless applications brings both new possibilities and challenges. More and more practices from software development processes like version control, code review, continuous integration, and automated testing are applied to cloud infrastructure automation. Most existing tools suggest defining infrastructure in text-based markup formats,

Read More