Thanks a lot! Adding another data item to DATA should already work without re-rendering the rest of the Components in the list because within the render method of the list item, we're using useMemo and only re-rendering those when title or selected changes.
Try modifying the example and let me know if you run into any issues.
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
Thanks a lot! Adding another data item to DATA should already work without re-rendering the rest of the Components in the list because within the render method of the list item, we're using useMemo and only re-rendering those when title or selected changes.
Try modifying the example and let me know if you run into any issues.