Closed VigilioYonatan closed 2 months ago
Do you use babel plugin?
Do you use babel plugin?
thanks. i fix that. import {useSignal} from '@preact/signals-react/runtime';
For me, it works, but the optimize example doesnt for react native. The Math.random is always ran on value update. Although it could be because im on an older version of react native
import { signal } from "@preact/signals-react";
const count = signal(0);
// Optimized: Will update the text node directly
function Counter() {
return (
<p>
<>Value: {count}</>
{Math.random()}
</p>
);
}
no print fetch.