via make.wordpress.org => original post link
The @wordpress/core-data JavaScript package in 6.1 ships new React hooks that make accessing WordPress data easier than before.
useEntityRecords
With useEntityRecords developers, can fetch a list of records with a single hook call: