{sizes.map((size) => {
return (
@@ -177,75 +166,83 @@ export default function App() {
-
-
-
-
- {person.name.first}
-
-
+
+ {({ value }) => (
+ <>
+
+
+
+ {value?.name?.first}
+
+
+
+
-
-
-
-
- {people.map((person) => (
- {
- return classNames(
- 'relative cursor-default select-none py-2 pl-3 pr-9 ',
- active ? 'bg-blue-600 text-white' : 'text-gray-900'
- )
- }}
- >
- {({ active, selected }) => (
- <>
-
- {person.name.first}
-
- {selected && (
-
+
+ {people.map((person) => (
+ {
+ return classNames(
+ 'relative cursor-default select-none py-2 pl-3 pr-9 ',
+ active ? 'bg-blue-600 text-white' : 'text-gray-900'
+ )
+ }}
+ >
+ {({ active, selected }) => (
+ <>
+
+ {person.name.first}
+
+ {selected && (
+
+
+
)}
- >
-
-
+ >
)}
- >
- )}
-
- ))}
-
-
-
+
+ ))}
+
+
+
+ >
+ )}