Archive: 2022
Pagination @Put(), @Delete()
Status code problem Nest will give a default status code of 200 when the request is successful. But we can also customize the status code and return. Nest does not need to memorize all status codes,
Controller, @Get(), @Post()
Generate a controller by running the Nest CLI Command: nest generate controller, which can be abbreviated as nest g co. Then enter the name of the controller. (If you don’t want to generate test fil
Introduction to Nest.js
Difference between NestJS and NodeJS NestJS is a framework that lets programmers focus on the application problem at hand rather than the tiny implementation details like setting up TypeScript, API
Custom hooks
Where to use With custom Hooks, component logic can be extracted into reusable functions. React Hooks means that components should be written as pure functions as much as possible. If external funct
List of My VSCode plugins
Auto Close Tag Auto Rename Tag HTML Snippets Babel ES6/ES7 Debugger for Chrome ESLint JavaScript (ES6) code snippets Code Spell Checker Node.js Modules Intellisense React-Native/React/
Responsive design
Responsive Layout One page corresponds to multiple devices. When the device screen/pc webpage size changes, the page layout (not the element/text size) will be changed automatically. There