0

what is the difference between importing function in {} and without {}. eg:

Some function we import without using {}. eg: import React from "react"; Some function we import inside {}. eg : import { useState } from "react";

  • Have a look at [named exports](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export) – Dominik Apr 15 '21 at 07:38

0 Answers0