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:

jsxfunction id() {
  // here is the id generation
}

This function is expected to generate id in a way that is convenient for you.

Задание 1

Implement the id() function using the nanoid library.

Задание 2

Implement the id() function using the react-uuid library.