<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>morningglorycloud0203</author_name>
  <author_url>https://blog.hatena.ne.jp/morningglorycloud0203/</author_url>
  <blog_title>宅建士の業務ハック</blog_title>
  <blog_url>https://mojitonews.hateblo.jp/</blog_url>
  <categories>
    <anon>React</anon>
  </categories>
  <description>本サイトの地図画面開発で生まれた3つのカスタムフックを実コードで整理しました。ブラウザAPIをラップする useIsMobile、コールバックとstateをセットにする useGeolocate、複数storeの横断操作をまとめる useCloseAll——目的が違えばフックの形も変わります。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmojitonews.hateblo.jp%2Fentry%2Fcustom-hooks-useismobile-usegeolocate-usecloseall&quot; title=&quot;カスタムフックで「どこで何が動くか」を整理——useIsMobile / useGeolocate / useCloseAll の設計 - 宅建士の業務ハック&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/morningglorycloud0203/20260421/20260421104652.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-21 10:51:56</published>
  <title>カスタムフックで「どこで何が動くか」を整理——useIsMobile / useGeolocate / useCloseAll の設計</title>
  <type>rich</type>
  <url>https://mojitonews.hateblo.jp/entry/custom-hooks-useismobile-usegeolocate-usecloseall</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
