#How to use types inside JSX with collections?

2 messages · Page 1 of 1 (latest)

covert whale
#

I'm trying to use:

postEntries.map((post: CollectionEntry<'post'>) => (

but I get:

Unable to assign attributes when using <> Fragment shorthand syntax!
  Hint:
    To fix this, please change < post'> to use the longhand Fragment syntax: <Fragment post'>
keen tinsel
#

I think you need TSX, right?