일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
- solidity
- useState
- blockchain
- graphQL
- typeScript
- tailwindcss
- 삶
- evm
- nextJS
- Interface
- Props
- built in object
- CLASS
- API
- concept
- Ethereum
- HTML
- JavaScript
- bitcoin
- middleware
- hardhat
- Redux
- express.js
- CSS
- error
- SSR
- 기준
- REACT
- node.js
- web
- Today
- Total
목록Frontend (231)
ReasonJun
createAction() The createAction() function in Redux Toolkit is a helper function that creates an action creator function. An action creator function is a function that returns an action object. The createAction() function takes two arguments: the action type and an optional prepareCallback function. The action type is a string that uniquely identifies the action. The prepareCallback function is ..
The configureStore() function in Redux Toolkit is a simplified version of the createStore() function in the original Redux library. It takes care of setting up the store with the middleware you need, and it also includes redux-thunk by default. Here is the syntax for using configureStore(): import { configureStore } from '@reduxjs/toolkit'; const store = configureStore({ reducer: rootReducer, })..
Redux Toolkit is a set of tools that helps simplify Redux development. It provides a number of utilities that make it easier to create and manage Redux stores, reducers, and actions. Some of the features of Redux Toolkit include: Simplified store configuration: Redux Toolkit provides a function called configureStore() that makes it easy to configure a Redux store. This function takes care of set..

middleware is a way to extend Redux with custom functionality. It is a function that sits between the action being dispatched and the action reaching the reducers. It allows you to intercept actions and do things like logging, routing, or asynchronous actions. Middleware is a composable function, which means that you can combine multiple middleware together. This makes it easy to add new functio..
Provider is a React component that makes the Redux store available to all of its child components. It is used to connect the Redux store to the React component tree. The syntax for using Provider is as follows: import { Provider } from 'react-redux'; const App = () => { const store = createStore(reducer); return ( ); }; In this example, the Provider component is used to make the store variable a..
CombineReducers is a Redux helper function that takes an object of reducers as input and returns a single reducer that combines the functionality of all the reducers in the object. This is useful when your application has a complex state that is managed by multiple reducers. The syntax for using CombineReducers is as follows: const rootReducer = combineReducers({ counter: counterReducer, todos: ..