You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
🤔
Lost in coding
NGR
NGR-NP
🤔
Lost in coding
React Js Developer -
When you're in the zone,
it's easy to tunnel vision and make mistakes.
A mental reset || second pair of eyes is always helpful.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show loading message while page resources is loading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
access and extract the specific query parameters from url in react js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Can you explain the concept of virtual DOM in React and how it improves performance?
Answer:
Imagine you're playing a game of "Spot the Differences" between two similar pictures. The virtual DOM is like a cheat sheet that tells you exactly which parts have changed, so you don't have to search the entire pictures. React uses this cheat sheet to update only the necessary elements in the real DOM, making the game (and your app) much faster!
2. How do you handle state management in React? Explain the difference between local state and global state.
Answer:
Think of state as a backpack. Local state is like keeping your personal belongings in your own backpack, easily accessible and private. Global state is like a community backpack shared by everyone, where you put items that need to be accessed and modified by different components. It's like a team effort to keep things organized and synchronized!
in mui make respondive component using useMediaquery theme break points
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dynamic favicon icon similar to WhatsApp's notification badge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given your situation and the details you've provided, it seems like you're experiencing issues with accessing most websites on your Linux system, while certain sites like Gmail and Facebook work. The inability to ping 8.8.8.8 suggests a DNS resolution issue, which is likely the root cause of your problem. Here's a step-by-step guide to help you troubleshoot and potentially resolve the issue:
1. Check Your DNS Settings
First, let's ensure your DNS settings are correctly configured. You can check your current DNS settings by looking at the /etc/resolv.conf file. Open a terminal and type: