Skip to content

Commit

Permalink
Fix formatting for vendor/react.ts
Browse files Browse the repository at this point in the history
Use formatting required by Prettier for this file.

Co-authored-by: Brian Vaughn <[email protected]>
  • Loading branch information
Niels Widger and bvaughn authored Aug 2, 2024
1 parent 97df604 commit 9da8509
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-resizable-panels/src/vendor/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ const {
} = React;

// `Math.random()` and `.slice(0, 5)` prevents bundlers from trying to `import { useId } from 'react'`
const useId = (React as any)[`useId${Math.random()}`.slice(0, 5)] as () => string;
const useId = (React as any)[
`useId${Math.random()}`.slice(0, 5)
] as () => string;

const useLayoutEffect_do_not_use_directly = useLayoutEffect;

Expand Down

0 comments on commit 9da8509

Please sign in to comment.