Skip to content

Commit

Permalink
add dynamic import
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignaherrero committed Apr 9, 2022
1 parent d207e8e commit ee446fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pages/index.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import dynamic from "next/dynamic";
import Head from "next/head";
import { useState } from "react";
import { useForm } from "react-hook-form";
import Card from "../components/card";
import Pagination from "../components/pagination";
import Search from "../components/search";
import { useCounter } from "../helper/useCounter";
const Card=dynamic(()=>import("../components/card"));
const Pagination=dynamic(()=>import("../components/pagination"));
const Search=dynamic(()=>import("../components/search"));

const statusFetch = {
pending: "pending",
Expand Down

1 comment on commit ee446fe

@vercel
Copy link

@vercel vercel bot commented on ee446fe Apr 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

challenge-atomik – ./

challenge-atomik.vercel.app
challenge-atomik-git-main-nacho93.vercel.app
challenge-atomik-nacho93.vercel.app

Please sign in to comment.