Learn React 18 Beta - 1Migrate a Client-Side Application to React 18 Beta1 min read·haorong.hashnode.devMar 12, 2022
Should I Handle Form Validation on Front or Backend?I was asked this question in an interview. My answer was both are necessary because my experience uses Node.js to build the backend. It has to make sure that the user sent the right type of data. For the front end, Validation can give some hints if t...1 min read·haorong.hashnode.devJun 22, 2021
#100DAYSOFCODE Day100Intermediate React Interview # Demo Code 1: fetch Data const [fetchData, setFetchData] = React.useState(null) React.useEffect(() => { fetch("https://randomuser.me/api/?results=20") .then((response) => response.json()) .then((re...2 min read·haorong.hashnode.devJun 11, 2021
#100DAYSOFCODE Day99Review and Explore Node.js Node Globals: __dirname __filename global os, fs , http don't need install: const os = require("os") // system info const fs = require("fs") // files management const http = require("http") console.log(os.platform(), ...1 min read·haorong.hashnode.devJun 10, 2021
#100DAYSOFCODE Day98Learn about TypeScript Types by Inference # let helloWorld = "Hello World"; Defining Types You can explicitly describe this object’s shape using an interface declaration: interface User { name: string; id: number; } const user: User = { name: ...1 min read·haorong.hashnode.devJun 9, 2021