Skip to main content

Posts Tagged ‘#PerficientPune’

Istock 1138332540

TypeScript Type Manipulation with keyof, typeof, and Mapped Types

TypeScript offers powerful type manipulation capabilities that allow developers to create more flexible and maintainable code. Three key features that enable this are keyof, typeof, and Mapped Types. Let’s explore each of them with examples. keyof: The keyof operator takes an object type and produces a string or numeric literal union of its keys. Example: This is […]

Featuredimage

Using TypeScript with React: Best Practices

Nowadays, TypeScript has become the first choice for building scalable and maintainable React applications. By combining the approaches for static typing with dynamic capabilities of React, TypeScript enhances productivity, improves the readability of code and reduces the runtime errors. In this blog, we will explore best practices for using TypeScript in React projects, covering type […]

Blockchain Technology With Abstract Background

JavaScript: Local Storage vs. Session Storage

In the world of web development, we often store data on the client side for various purposes which could be to remember user-preferences or to maintain the application state. Here, JavaScript provides two key mechanisms for this, which are Local Storage and Session Storage. Both are part of Web Storage API; they have some unique […]