382 B
382 B
Improve formatting of React useImperativeHandle hook (#16070 by @Jaswanth-Sriram-Veturi)
// Input
useImperativeHandle(ref, () => {
/* Function body */
}, []);
// Prettier stable
useImperativeHandle(
ref,
() => {
/* Function body */
},
[],
);
// Prettier main
useImperativeHandle(ref, () => {
/* Function body */
}, []);