Popular posts

JavaScript
React
Post image

Pure Functions in JavaScript: A Beginner's Guide

A pure function always returns the same value for the same arguments and produces no side effects.
Continue reading ➞
Post image

Record Type in TypeScript: A Quick Intro

Record type simplifies typing objects in TypeScript. Let's see how you can benefit from it.
Continue reading ➞
Post image

How to Write Comments in React: The Good, the Bad and the Ugly

Posted April 21, 2023
{/* Comment */} is the usual way to write comments in React. But there are 2 better ways to comment you just have to know.
Continue reading ➞
Post image

4 Ways to Create an Enum in JavaScript

Posted April 14, 2023
An enum is a set of named constants. The plain object, frozen object, proxied object or class-based are the 4 ways to create enums in JavaScript.
Continue reading ➞
Post image

React forwardRef(): How to Pass Refs to Child Components

Posted April 6, 2023
React forwardRef() is a tool for passing refs to child components. Discover how to use it with ease in this comprehensive tutorial.
Continue reading ➞
Post image

TypeScript Function Types: A Beginner's Guide

Are you struggling to understand TypeScript function types? Look no further! This comprehensive guide covers everything you need to know.
Continue reading ➞
Post image

How to Use v-model to Access Input Values in Vue

How to use v-model to bind form input elements like text input, textarea, select, checkbox, radio in Vue.
Continue reading ➞
Post image

Mastering Vue refs: From Zero to Hero

ref() is a Vue composition API function that creates refs: small reactive values.
Continue reading ➞
Post image

Environment Variables in JavaScript: process.env

Posted February 8, 2023
How to access environment variables in JavaScript using process.env and expose them to the browser runtime using bundlers like Vite and webpack.
Continue reading ➞
Post image

5 Must-Know Differences Between ref() and reactive() in Vue

What are the main differences between ref() and reactive()? And when to use one or another?
Continue reading ➞
prev
1234
[...]
18next