일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- graphQL
- tailwindcss
- solidity
- built in object
- CLASS
- middleware
- CSS
- error
- REACT
- blockchain
- express.js
- HTML
- Ethereum
- nextJS
- web
- API
- bitcoin
- 삶
- node.js
- SSR
- evm
- Redux
- useState
- typeScript
- Props
- 기준
- Interface
- JavaScript
- hardhat
- concept
- Today
- Total
목록nextJS (33)
ReasonJun
The useState hook is designed to be used within a functional component, and it cannot be used inside an asynchronous function. In Next.js, async operations are typically handled using the useEffect hook or by using server-side rendering (SSR) or static generation (SG) methods. If you need to perform an asynchronous operation and update state based on the result, you can use the useState hook in ..
useRouter is a React Hook that provides access to the router state in your Next.js application. This can be useful for getting the current route, navigating to other routes, and handling route changes. The useRouter hook returns an object with the following properties: pathname: The current path of the route. query: The query string of the route. asPath: The path as shown in the browser includin..
Error handling is an important aspect of any web application, especially when working with Next.js. Next.js provides different ways to handle errors in development, server-side, and client-side scenarios. In this article, we will explore some of the best practices for error handling in Next.js 13. In development mode, Next.js shows an overlay that covers the webpage when there is a runtime error..
webVitalsAttribution is a Next.js configuration option that allows you to enable attribution for Web Vitals metrics. This means that you can track the origin of each Web Vitals metric, which can be helpful for debugging performance issues. https://nextjs.org/docs/app/api-reference/next-config-js/webVitalsAttribution next.config.js Options: webVitalsAttribution | Next.js Using App Router Features..
Custom App Next.js uses the App component to initialize pages. You can override it and control the page initialization and: Persist layouts between page changes Keeping state when navigating pages Inject additional data into pages Add global CSS import '@/styles/globals.css' export default function App({ Component, pageProps }) { return } https://nextjs.org/docs/pages/building-your-application/r..
Absolute Imports Absolute imports in Next.js allow you to import modules from the root of your project. This can be useful for organizing your code and making it easier to find the modules that you need. To use absolute imports in Next.js, you need to add the following line to your tsconfig.json file: { "compilerOptions": { "baseUrl": "." } } This will tell Next.js to treat all imports as if the..