<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>develop_neoguri</author_name>
  <author_url>https://blog.hatena.ne.jp/develop_neoguri/</author_url>
  <blog_title>방구석에 놔둔 개발 노트</blog_title>
  <blog_url>https://mayuu-no-gochi.hateblo.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>💭 API 로직에 대한 고민 마이그레이션을 하면서 고민했던 사항 중 하나는 API 로직의 재사용 및 코드량 줄이기였다. 아래는 마이그레이션 전의 useEffect를 통해서 API 로직을 구현했던 코드이다. useEffect(() =&gt; { const getUserTravelLists = async () =&gt; { const clearModalState = () =&gt; { return setModalState({ state: false, title: &quot;&quot;, context: &quot;&quot;, buttonText: &quot;&quot;, closeFunc: () =&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayuu-no-gochi.hateblo.jp%2Fentry%2F2024%2F07%2F23%2F151440&quot; title=&quot;2024-07-01: class를 활용한 API 로직 분리 - 방구석에 놔둔 개발 노트&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-07-23 15:14:40</published>
  <title>2024-07-01: class를 활용한 API 로직 분리</title>
  <type>rich</type>
  <url>https://mayuu-no-gochi.hateblo.jp/entry/2024/07/23/151440</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
