Skip to content

Commit a0849d5

Browse files
committed
dd
1 parent b8df9a9 commit a0849d5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

_posts/React/2023-03-28-08 페이지 나누기.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: Young
77
comments: True
88
---
99

10-
<%raw%>
10+
<% raw %>
1111

1212
React는 기본적으로 SPA
1313
Single Page Application이다.
@@ -284,4 +284,4 @@ let { id } = useParams(); // 현재 url의 parameter 정보가 남음
284284

285285
```
286286

287-
<%endraw%>
287+
<% endraw %>

_posts/ReactNative/2023-05-08-18 사진공유앱시작.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,13 @@ useFocusEffect는 해당 화면이 나타날 때 발생하며
107107
이 때, useCallback 안에 사용하여 함수를 캐시에 저장해두고 사용함으로써
108108
중복으로 호출되는 현상을 방지한다.
109109

110+
## useReducer
111+
112+
상태 관리하는 hook으로 usestate 말고도
113+
useReducer라는게 있음.
114+
115+
```jsx
116+
const [state, dispatch] = useReducer(reducer, init);
117+
```
118+
110119
{%endraw%}

0 commit comments

Comments
 (0)