skip to Main Content

Javascript – Request API with next js 14

This code isn't working; this code is written by next js, the error on the console is: GET http://localhost:3000/products/porducts.json 404 (not found) And: Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON fetch("/products/products.json") .then((response) => response.json())…

VIEW QUESTION

Reactjs – How to open login modal using a button?

This is my login modal: "use client"; import Link from "next/link"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import { Card, CardContent, CardFooter, CardHeader, } from "@/components/ui/card"; import { Icons } from "@/components/icons"; import { siteConfig } from "@/config/site";…

VIEW QUESTION
Back To Top
Search