Skip to content

Commit

Permalink
[core] Replace JSX namespace usages with React.JSX (#43204)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah authored Aug 6, 2024
1 parent 2450751 commit f9f04c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/data/base/components/select/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const CustomSelect = React.forwardRef(function CustomSelect<TValue>(
return <Select {...props} ref={ref} />;
}) as <TValue>(
props: SelectProps<TValue> & React.RefAttributes<HTMLUListElement>,
) => JSX.Element;
) => React.JSX.Element;
```

For the sake of brevity, the rest of the demos throughout this doc will not use `forwardRef`.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/animation/FlashCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const FlashCodeRoot = styled('div', {
}));

const FlashCode = React.forwardRef(function FlashCode(
props: JSX.IntrinsicElements['div'] & {
props: React.JSX.IntrinsicElements['div'] & {
sx?: SxProps;
endLine?: number;
startLine?: number;
Expand Down

0 comments on commit f9f04c5

Please sign in to comment.