How to use Legacy Build System in Xcode (2022)

January 2, 2022 A Goodman

This article shows you how to use the Legacy Build System in Xcode. Note that Legacy Build System is now deprecated and will be removed in a future release. Please make sure you have a proper…

React Navigation: Hide Header Bar on Specific Screens

January 19, 2022 A Goodman

To hide the header bar on one or some specific screens in a React Native app that uses React Navigation 6 or newer, just add the following option to Stack.Screen: Like this: For more clarity, see…

React Native: Handle TextInput, Button events with State hook

January 26, 2022 A Goodman

This article will show you how to handle TextInput, Button events in React Native with the useState hook. You will also learn how to dismiss the device’s keyboard after the button is pressed by using the…

[JS] Generate a random number between Min and Max and exclude a specific number

February 13, 2022 A Goodman

Creating a random number is popular stuff in Javascript that has many use cases. This article shows you how to generate a random number between a minimum number (inclusive) and a maximum number (exclusive) and the…

Passing Data from a Child Component to the Parent in React

January 25, 2022 A Goodman

In React, passing data from a parent component into a child component is quite easy with “props”. On the other hand, passing data from a child component to a parent component is a little more complicated…

A few examples of exports and require in Node.js

February 23, 2022 A Goodman

A few easy-to-understand examples that will help you understand “exports” and “require” in Node.js better. Example 1 Exports: Require (file index.js) Examples 2 Export (call it your-file.js or whatever you like): Require: Further reading: 2 Ways…

How to get all Links from a Webpage using Node.js and Cheerio

March 19, 2022 A Goodman

Node.js is a javascript runtime environment that helps you create high-performance apps. Because Node.js functions are non-blocking (commands execute concurrently or even in parallel, it can perform heavy tasks without incurring the cost of thread context…

Simple Promise chain example in modern Javascript (ES6+)

February 13, 2022 A Goodman

The simple and easy-to-understand example below shows you how to use the Promise chain in modern Javascript (ES6, ES7, ES8, or newer). The code: Output: Further reading: Calculate Variance and Standard Deviation in Javascript Javascript: Capitalize…

Javascript: Get current date time in yyyy/MM/dd HH:mm:ss format

February 13, 2022 A Goodman

This concise article shows you how to get the current date and time in Javascript in yyyy/MM/dd HH:mm:ss format. We’ll write code from scratch without using any third-party libraries. In the example below, we will create…

How to show all installed extensions in VS Code

September 7, 2022 A Goodman

This short and straight-to-the-point article shows you how to show all installed extensions in the VS Code (Visual Studio Code). 1. Click on the Extensions icon or (hotkeys: Ctrl + Shift + X on Windows, Command…

How to use react-ga to track your React website traffic

January 25, 2022 A Goodman

This tutorial shows you how to track your React app (or website) traffic with Google Analytics. Prerequisites To follow this tutorial, you should have: A Google Analytics account Basic React knowledge Installation The react-ga library is…

How to use Font Awesome icons in React

January 25, 2022 A Goodman

This article will show you how to use Font Awesome icons in a React app. Firstly, let’s install the necessary packages: Next, import the icons you need and use them (and style them) in your React…

1 83 84 85 86