SSShyam Sundarinshyam3050.hashnode.dev·Mar 2, 2024 · 1 min readwhile connecting to expo go mobile sometime went wrong error.using the latest expo like npx create-expo-app appname. if you connect to a PC and mobile external wifi, this error happens because of --tunnel. so in package.json start script should be modifily like this "scripts": { "start": "expo start --tun...00
SSShyam Sundarinshyam3050.hashnode.dev·Nov 28, 2023 · 2 min readfilter in js - Deep dive into the filterIn JavaScript, filter() is a higher-order array method that creates a new array by filtering out elements from an existing array based on a provided condition. It doesn't modify the original array but instead returns a new array containing only the e...00
SSShyam Sundarinshyam3050.hashnode.dev·Aug 24, 2023 · 2 min readDeep dive into the useState() Hook in React.js.import {useState} from "react"; const Header = () => { const [num, setnum] = useState(1); function updater(){ console.log(num); // 1 (for the first time button click) setnum((prevStateValue) => prevStateValue + 1); console.log(num); // 1 (for the...00
SSShyam Sundarinshyam3050.hashnode.dev·Aug 23, 2023 · 1 min readx++ (post-increment) ≠ x = x + 1Post increment(x++) not equal to x = x + 1; let x = 10; let y = x++; console.log(y); // 10 console.log(x);// 11 On the above code x++ (post-increment) will increment the original value + 1 and return the initial value not incremented value. let x = ...00
SSShyam Sundarinshyam3050.hashnode.dev·Oct 13, 2022 · 2 min readBe an EXPERT in your fieldIf you are in any kind of field doing any work then you should become an expert in that work. First, check if you can do the job you are doing. If you like, you can make it perfect. Reading thoroughly about that subject. Make friends with all the sen...00