-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededrefactoring
Description
Before You Submit
- I have searched for duplicate or closed issues
- I have read the contributing guidelines
Describe the issue
The ScrollToTop component currently types children as React.ReactNode. This can be simplified by importing ReactNode directly from react and using it in the props type.
Goal:
- Import
ReactNodefromreact. - Replace
React.ReactNodewithReactNodein the component props.
Import:
import { ReactNode, useLayoutEffect } from 'react';Current:
const ScrollToTop = ({ children }: { children: React.ReactNode }) => { ... }After cleanup:
const ScrollToTop = ({ children }: { children: ReactNode }) => { ... }Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededrefactoring