I would like to be able to create an implementation of iterating over elements using the useEach hook, since there are problems specifying a unique key if the data is not from the server, there is a lot of boilerplate code to check that the list is empty and a for construct
I don't think its good idea because react hook are not intended to handle jsx (or any markup). its better to implement several patterns like Compound Component or Render Props
I would like to be able to create an implementation of iterating over elements using the useEach hook, since there are problems specifying a unique key if the data is not from the server, there is a lot of boilerplate code to check that the list is empty and a
for
construct