Without the fragment factory you can't use the <> ... </> as a fragment shorthand. If it's set to Fragment instead of h.Fragment, you'd have to manually import Fragment or otherwise you'd get a "Cannot find name 'Fragment'." error. With h.Fragment, <> ... </> just works.
Without the fragment factory you can't use the
<> ... </>
as a fragment shorthand. If it's set toFragment
instead ofh.Fragment
, you'd have to manually importFragment
or otherwise you'd get a "Cannot find name 'Fragment'." error. Withh.Fragment
,<> ... </>
just works.Thanks @WickyNilliams for the hint!