Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 251 Bytes

use-microtask-effect.md

File metadata and controls

11 lines (8 loc) · 251 Bytes

useMicrotaskEffect

Schedules an effect with queueMicrotask.

Example

useMicrotaskEffect(() => {
  console.log('doot doot doot!')
}, [/* effect dependencies */]);