Function to generate id in React
Since the library used to generate id can be different, I will use the following wrapper function in the following lessons:
function id() {
// here is the id generation
}
This function is expected to generate id in a way that is convenient for you.
Implement the id() function using the nanoid library.
Implement the id() function using the react-uuid library.