Unidirectional and bidirectional data flow
One-way and two-way data binding
Oct 24, 20221 min read110
Search for a command to run...
Articles tagged with #reactjs
One-way and two-way data binding
Today, I had to close a modal, after clicking outside of it. Here's how I've done it: export default function App() { const [open, setOpen] = React.useState(false) const modalRef = React.useRef<HTMLDivElement>(null) React.useEffect(() => { ...
Today I learned, what is the actual order of execution of React Query useMutation side effects. Given a mutation like this: const mutation = useMutation( (id) => { console.log('Mutation callback') return toggleTodo(id) }, { ...