<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yunagi_n</author_name>
  <author_url>https://blog.hatena.ne.jp/yunagi_n/</author_url>
  <blog_title>なつねこメモ</blog_title>
  <blog_url>https://tech.natsuneko.blog/</blog_url>
  <categories>
    <anon>TypeScript</anon>
    <anon>Vue.js</anon>
  </categories>
  <description>React で、子コンポーネントの関数を何らかの理由で呼び出したい場合、 useImperativeHandle を使います。 import React, { useImperativeHandle } from &quot;react&quot;; const SomeComponent = React.forwardRef((props, ref) =&gt; { useImperativeHandle(ref, () =&gt; ({ log: () =&gt; console.log(&quot;Hello from SomeComponent!&quot;); })); }); これを Vue 3 でもしたい。で、それに相当する API は…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2023%2F04%2F28%2Fvue3-equivalent-to-use-imperative-handle&quot; title=&quot;Vue3 でも React でいう useImperativeHandle をしたい - なつねこメモ&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>2023-04-27 15:00:00</published>
  <title>Vue3 でも React でいう useImperativeHandle をしたい</title>
  <type>rich</type>
  <url>https://tech.natsuneko.blog/entry/2023/04/28/vue3-equivalent-to-use-imperative-handle</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
