bhai ye btana ki mene .env file bnaye hai and now ab mujhe apna project host krna hai on netlify so mujhe jo .env file hai use ignore krna hai kyuki usme sensitive info hai so mene gitignore file me .env addd kra but .env file dark gray nhi huye matlab ignore nhi huye ...how to ignore it give me solution brother please bhai..
The InfiniteScroll component can be used in three ways. Specify a value for the height prop if you want your scrollable content to have a specific height, providing scrollbars for scrolling your content and fetching more data. If your scrollable content is being rendered within a parent element that is already providing overflow scrollbars, you can set the scrollableTarget prop to reference the DOM element and use it's scrollbars for fetching more data. Without setting either the height or scrollableTarget props, the scroll will happen at document.body like Facebook's timeline scroll. Check Documentation Here www.npmjs.com/package/react-infinite-scroll-component
hi brothe bhair hmare usme ErrorMassage run nahi ho rha he Objects are not valid as a React child (found: object with keys {}). If you meant to render a collection of children, use an array instead. ye error de rha he
great video but what i found is it will still re-render todo list component when you do not pass prop to it. if you just import todo component to LearmMemo component it still re-render. this scenario is without using memo just to check wether this happens only after passing prop or direct import of component also re-render.
useMemo is used for value and usecallback is used for functions here is the video link ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9ihoRGrie9Q.html&ab_channel=Front-EndHacks
@@frontendHacks sir aap bss aisa samjh ke code bana do ki mere pass ek array hai usme 100 data hai maan lo koi div he hai ya image mai chahta hu ki phle scree par 10 data show ho fir scrol karne par next 10 concat with previous aise 100 tak chale aap samjh gye... Aisa code mujhe likh ke do na sir mai 3 din se searc karte karte pagal ho gya huu
So basically it converts non primitive data type to primitive data type and it makes them immutable , i think this freeze() is applicable for arrays as well as its non primitive .
Those who face issue in API const apiURL = "api.openweathermap.org/data/2.5/weather?q=" + cityName + "&appid=" + apiKey const apiKey = "f56f24967aaf51182d1d4df628297c6d"