1import NavBar from "./nav.js";
2import { useState } from "react";
3import React from "react"; 4import NextNProgress from "nextjs-progressbar";
5import { darkMode } from "../globalStates/theme.js";
6
Using a single import
statement per module will make the code clearer because you can see everything being imported from that module on one line.
In the following example the module
import on line 1 is repeated on line 3. These can be combined to make the list of imports more succinct.
import { merge } from 'module';
import something from 'another-module';
import { find } from 'module';
import { merge } from 'module';
import something from 'another-module';
import { find } from 'module';
import { merge, find } from 'module';
import something from 'another-module';