ijsto / ijsto/react-slideout

defaultProps is deprecated in react v18

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

In index.js:

`SlideOut.defaultProps = {
maxWidth: '100%',
overflowShouldLock: true
};`

defaultProps is deprecated in v18 and will be removed in the future versions.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in index.js at the SlideOut.defaultProps assignment and review the component's current default behavior alongside React 18 guidance. Done means the deprecated defaultProps usage is addressed while maxWidth and overflowShouldLock retain their documented defaults; the payload names no tests, so verify the component behavior directly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.