([]);
+
+ useEffect(() => {
+ fetch('https://picsum.photos/v2/list')
+ .then((response) => response.json())
+ .then((data: { author: string, download_url: string }[]) => setMangas(
+ data.map((it) => ({ name: it.author, imageUrl: it.download_url })),
+ ));
+ });
+
+ if (mangas.length === 0) {
+ mapped = wait
;
+ } else {
+ mapped = (
+
+ {mangas.map((it) => (
+
+ ))}
+
+ );
+ }
+
+ return mapped;
+}
function Extensions() {
let mapped;
@@ -56,6 +84,9 @@ export default function App() {
+
+
+