-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Domain: JSX/TSXRelates to the JSX parser and emitterRelates to the JSX parser and emitterFix AvailableA PR has been opened for this issueA PR has been opened for this issueIn DiscussionNot yet reached consensusNot yet reached consensusNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
Major changes for us:
- JSX
children
are always installed as an array on the props object - not as trailing arguments. key
will be passed separately from other props (in place ofchildren
)
Also of note:
defaultProps
will be deprecated on function components- Spreading
key
will be deprecated - String
refs
will be deprecated
We might need new jsx
flags, or jsxFactory
flags, or something similar. Checking might need to be changed to reflect this as well depending on if/how we resolve createElement
calls.
sindresorhus, agentcooper, topaxi, ixcviw7bw, limichange and 9 moreecreeth, aminpaks, soncodi, topaxi, BPScott and 2 morebrainkim, grapgrap, avindra and orta
Metadata
Metadata
Assignees
Labels
Domain: JSX/TSXRelates to the JSX parser and emitterRelates to the JSX parser and emitterFix AvailableA PR has been opened for this issueA PR has been opened for this issueIn DiscussionNot yet reached consensusNot yet reached consensusNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript