<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>vermeer-1977</author_name>
  <author_url>https://blog.hatena.ne.jp/vermeer-1977/</author_url>
  <blog_title>システム開発で思うところ</blog_title>
  <blog_url>https://vermeer.hatenablog.jp/</blog_url>
  <categories>
    <anon>React</anon>
  </categories>
  <description>何が嬉しいの？ Windowをまたがった情報共有ができる。 ただし多用すると状態管理が散乱するので避けた方良い。 実装 import { useEffect, useState, useRef } from 'react'; const useCrossWindowState = &lt;T&gt;( stateKey: string, defaultValue: T, ): [state: T, setState: (state: T) =&gt; void] =&gt; { const [state, setState] = useState&lt;T&gt;(defaultValue); const isNewSessio…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fvermeer.hatenablog.jp%2Fentry%2F2022%2F01%2F02%2F133651&quot; title=&quot;LocalStorageを扱うHooks - システム開発で思うところ&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>2022-01-02 13:36:51</published>
  <title>LocalStorageを扱うHooks</title>
  <type>rich</type>
  <url>https://vermeer.hatenablog.jp/entry/2022/01/02/133651</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
