whats diff between { navbar } and navbar
Answered
Auth posted this in #help-forum
AuthOP
like when we import component which way is correct
import { Navbar } from "../components/Navbar"
or import Navbar from "../components/Navbar"
7 Replies
1st one is named export
Answer
second one is default export
export const something = "something";
-> this is named exportexport default something
-> this is default export^ hope this helps
AuthOP
oh alright