diff --git a/src/sections/Art/index.jsx b/src/sections/Art/index.jsx index 0c74ffc2..934e142d 100644 --- a/src/sections/Art/index.jsx +++ b/src/sections/Art/index.jsx @@ -1,8 +1,42 @@ +import { useEffect, useState } from "react" + function ArtsSection() { + const [arts, setArts] = useState([]); + const url = "https://boolean-uk-api-server.fly.dev/art"; + const baseUrl = "https://boolean-uk-api-server.fly.dev"; + + useEffect(() => { + fetch(url) + .then(res => res.json()) + .then(setArts) + }, []); + return (

Arts Section

-
+
+ +
) } diff --git a/src/sections/Users/index.jsx b/src/sections/Users/index.jsx index 77332830..b579dcca 100644 --- a/src/sections/Users/index.jsx +++ b/src/sections/Users/index.jsx @@ -1,8 +1,32 @@ +import { useState, useEffect } from "react" + function UsersSection() { + const [users, setUsers] = useState([]); + const url = "https://boolean-uk-api-server.fly.dev/RoderickLei/contact"; + + useEffect(() => { + fetch(url) + .then(res => res.json()) + .then(setUsers) + }, []); + return (

Users Section

-
+
+ +
) }