score:0

in the blog post, the call to usefetchrooms uses the url /api/rooms but you are using the url /rooms. my guess is that the fetch call is failing because /rooms is a route in your front-end and if you switch that out for /api/rooms it might just work (or at least get you a bit further).

const roomlist = () =>  {
    const [state, setstate] = useglobalstate();
    const fetchrooms = usefetchrooms('/rooms'); // <-----

Related Query

More Query from same tag