This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Switch to Fragment short syntax (from <Fragment> to <>) #1761
Labels
type: cooldown
Things that are queued for a cooldown period (assists with planning).
type: refactor
The issue/PR is related to refactoring.
There has been some discussion in a couple of PRs in parallel whether we should use
<Fragment>
or<>
:This issue is to centralize the discussion and, in case we agree to switch from
<Fragment>
to<>
, enable the appropriate ESLint rule.Some things to notice:
<Fragment>
until now.<Fragment>
and<>
.<Fragment>
means we need to import it. Considering we currently have three different packages where it can be imported from (@wordpress/element
,wordpress-element
andreact
), that might be a source of unexpected bugs that could be prevented if we used the short syntax.The text was updated successfully, but these errors were encountered: