How does VuReact compile Vue 3's defineExpose() to React? VuReact is a compiler toolchain that converts Vue 3 syntax into React code, specifically mapping Vue 3's `defineExpose()` macro to React's `forwardRef()` and `useImperativeHandle()` combination. When a parent component accesses exposed child values through a ref, VuReact translates Vue's `ref` and `expose` pattern into React's `useRef()` and `ref.current` syntax, preserving the structure and interaction model of the original Vue code. VuReact https://github.com/vureact-js/core is a compiler toolchain for migrating from Vue to React — and for writing React with Vue 3 syntax. In this article, we will look at how Vue 3's defineExpose macro is mapped into React. Before We Start To keep the examples easy to read, this article follows two simple conventions: - All Vue and React snippets focus on core logic only, with full component wrappers and unrelated configuration omitted. - The discussion assumes you are already familiar with the API shape and core behavior of Vue 3 defineExpose . Compilation Mapping Vue defineExpose - React forwardRef + useImperativeHandle defineExpose is the macro used inside Vue 3