- {firstThought && }
-
- {sortedThoughts.map((thought) => )}
-
+
+
+ {
+ Object.entries(yearToThoughts)
+ .sort((a, b) => Number(b[0]) - Number(a[0]))
+ .map(([year, thoughts]) => (
+ <>
+
+ {year} ({thoughts.length})
+
+
+ {thoughts.map((thought) => (
+
+ ))}
+
+ >
+ ))
+ }