JavaScript for WordPress Forums Gutenberg Development Fragment vs. returning an array in edit Reply To: Fragment vs. returning an array in edit

#46892
Zac Gordon
Keymaster

This is a good question.

In general I think using Fragments is a solid approach that is also quite common in React and some vanilla JS work.

The ability to pass arrays here I like but it doesn’t always work best.