Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(icons-react): use HTMLAttributes instead of HTMLProps #629

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

vagusX
Copy link
Member

@vagusX vagusX commented Mar 15, 2024

related to


Reference from gpt-4

React-specific attributes that are included in React.HTMLProps but not in React.HTMLAttributes include:

ref: This is a special attribute that can be used to get a reference to the underlying DOM element or the instance of a class component. It's useful for direct manipulation of DOM elements.

key: This is a special attribute that helps React identify which items have changed, are added, or are removed in lists. It's important for efficient re-rendering of lists.

@vagusX vagusX requested review from afc163, zombieJ and MadCcc March 15, 2024 05:10
@vagusX vagusX merged commit 0887dca into master Mar 15, 2024
4 checks passed
@vagusX vagusX deleted the fix/change-html-props-to-html-attrs branch March 15, 2024 05:26
@vagusX
Copy link
Member Author

vagusX commented Mar 15, 2024

@wzc520pyfm
Copy link

Will there be an update to version 4.x? Because @types/react also relased version 17.0.78, @ant-desgin/[email protected] will also report this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants