Why there is a difference of usage between the import statement and the require statement in different parts of the project directories using these frameworks, answered.

Photo by CHUTTERSNAP on Unsplash

I had always thought that JavaScript import and require statements to be more or less the same. When you want to use other components…


Mercantilism gained tract in the late 16th century. We follow the story of how it came to be and its fall from grace as the main economic policy of that age. We end by asking whether mercantilism still exists in this modern world.

Photo by Dmitry Demidko on Unsplash

Mercantilism in Europe began in late 16th…


How to serve a React app using Express.js through server-side rendering

Photo by Science in HD on Unsplash

You have setup and created your react app (using create-react-app, other boilerplates, or even creating it from scratch). Now you’re trying to serve it to the web so people can experience your app. Sure, for easy deployment and minimal setup you can go for the already established platforms such as…


How to serve a React app using Express.js by implementing client-side rendering solutions

Photo by Kate Townsend on Unsplash

You have setup and created your react app (using create-react-app, other boilerplates, or even creating it from scratch). Now you’re trying to serve it to the web so the world can see what you’ve made. Sure, for easy deployment and minimal setup you can go for the already established platforms…


Building a React app from an empty directory using the latest Webpack and Babel.

Photo by Scott Blake on Unsplash

Nowadays, starting a React app is as simple as typing a line of command into the terminal, taking for granted what happens under the hood. We use create-react-app or other boilerplates to start the development process and dive straight into the actual React code.

However, it would be a great…


Using Recoil.js library for state management in a Next.js application.

Photo by Markus Spiske on Unsplash

Intro

Keeping states between pages in a React application can be tricky. This article explains how to keep states persistent in a Next.js based React application using Recoil.js. Before reading this article, one should have a basic understanding of React.

Next.js is a React-based framework for building complete web applications. Next.js…


How to solve the problem of persisting state between pages using Recoil library in a Gatsby site.

Photo by Kevin Ku on Unsplash

According to its official documentation, Recoil is “a state management library for React”. There are a couple of reasons why Recoil is best chosen to manage states in a react application rather than using React’s built-in state management capabilities (including context).

Gatsby, on the other hand, “is a React-based open…


Photo by: Akira Hojo — Unsplash

Dalam dunia akuntansi, kita mengenal adanya suatu kerangka konseptual akuntansi. Tulisan ini merupkan bagian pertama dari rangkaian tulisan yang akan mengupas tuntas mengenai kerangka konseptual akuntansi. …

Putra Aryotama

I write for fun! I write about my field of work (tax, accounting, and economics) and hobby (programming, javascript, react). Sometimes in Indo, usually in Eng

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store