Autodesk / Autodesk/react-base-table

Multiple console warnings due to Class Component structure

Open
#431 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
170
PR merge metrics
No merged PRs in 30d

Description

As React is reaching 20+ version numbering with 18+ being a stable one, existing Class components in react-base-table should be converted to Function Components to avoid the below warnings.

Warning: TableHeaderRow2: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing class components in react-base-table, especially TableHeaderRow2, and inspect how their defaults and rendering behavior are defined. Convert the affected components to function components while preserving behavior, then verify that the reported defaultProps console warnings no longer appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.