Skip to content

Instantly share code, notes, and snippets.

View kingyong9169's full-sized avatar
:octocat:

김동용 kingyong9169

:octocat:
View GitHub Profile
import { useReducer, useEffect } from 'react';
type InitialState<D, E> = {
isLoading: boolean;
data: D | null;
error: E | null;
};
type LoadingAction = {
type: 'LOADING';