sir i have a fresher level react coding interview in 2 days i want to practice more such coding components ...please upload more vids 🙏
@formulaC_Coder28048 сағат бұрын
I have a React interview playlist, you can check it out.I'm working on creating more such videos, but in two days, it will be difficult to upload additional content.I hope you clear this interview. If you need more in the future, stay tuned for my videos. Good luck with your interview! ☺️
@AnshJain-yh5bc8 сағат бұрын
@@formulaC_Coder2804 sir i have a doubt , what's the difference in export default and normal export and also in import when do we use {} in import : Import {fruits} from "./items" and when do we simply write import fruits from "./items" Are they both different?
@formulaC_Coder28047 сағат бұрын
@@AnshJain-yh5bc look we have two things here 1)default export 2)named export A single file can have only: one default export, and if we have more exports, then it would be named exports lets say we have a file data.js //first export , that is default export const defaultData = "This is default data"; export default defaultData; //we have more exports, so it would be named export export const fruits = ["Apple", "Banana", "Orange"]; export const vegetables = ["Carrot", "Spinach", "Potato"]; //Then the default export will be imported simply like this : import defaultData from './data.js'; //And the named exports would be imported like this: import { fruits, vegetables } from "./data.js"; And coming to the second part, when to use curly braces. we have exported the fruits as the named export //export const fruits=[]; so we imported it using curly braces //import { fruits } from "./items"; we could have also exported the fruits as the default export, as we only had single export in one file. //const fruits = []; export default fruits; then simply we had imported it like this // import fruits from "./items" I hope this clears your doubt.