下面两段代码基本上有什么区别?我们可以说 useReactiveVar 是一种具有重新渲染能力的 useRef 吗?
const [awesomeVar, setAwesomeVar] = useState("iAmAwesome");
setTimeout(() => console.log(awesomeVar), 1000);
setAwesomeVar("youAreAwesome");
const reactiveVar = makeVar("iAmAwesome");
// ...
const awesomeVar = useReactiveVar(reactiveVar);
setTimeout(() => console.log(awesomeVar, useReactiveVar()), 1000);
useReactiveVar("youAreAwesome");