Our Blogs
SCROLLTOTOP ON CLICK RESPONSIVE MENU ITEM USING REACT JS
1-To implement a "scroll to top" functionality in a React application when a responsive menu item is clicked, First Create a new React component for your responsive menu. Add a button or menu item in your responsive menu that, when clicked, will trigger the scroll to top action. Implement a function in your component that handles the scroll to top action.
In the above code: We use the useState hook to manage the state of the responsive menu (whether it's open or closed). We create a scrollToTop function that uses window.scrollTo to scroll to the top of the page. The behavior: 'smooth' option provides smooth scrolling.In the return statement, you can add your other menu items and the logic to open and close the responsive menu as needed. Please note that this is a simplified example, and you may need to adapt it to your specific project structure and styling requirements. Additionally, you'll need to incorporate this ResponsiveMenu component into your application where it's needed.
2-Copy the bottom video link for detail guide:
https://youtu.be/SQT1x-YIijw
Created By WEBTECHUT On 2023-10-19 10:11:21
HOW TO INSTALL VSCODE IN WINDOW'S
1-Download VSCode:
Visit the official Visual Studio Code website at https://code.visualstudio.com.
2-Download the Installer:
On the VSCode website, click the "Download for Windows" button. This will download the installer file to your computer.
3-Run the Installer:
Locate the downloaded installer file (typically in your Downloads folder) and double-click it to run it.
4-User Account Control (UAC) Prompt:
Windows may display a User Account Control prompt to confirm that you want to allow the installer to make changes to your device. Click "Yes" to proceed.
5-Installation Options:
Choose the installation type that suits your needs. The user installer is typically sufficient for most users.
6-Select Additional Tasks:
You can choose to add "Open with Code" and "Add to PATH" options during installation.
7-Start VSCode:
After installation is complete, you can choose to launch VSCode immediately by checking the "Launch Visual Studio Code" option and then clicking "Finish."
8-First Launch:
When you first launch VSCode, it may ask you if you want to install recommended extensions. You can choose to install them or skip this step.
9-Welcome Screen:
You should now see the Visual Studio Code welcome screen, and you are ready to start coding.
Created By Rajvansh Singh Brar On 2023-09-11 02:05:35
TOP TEN TOOLS FOR ANDROID
1-Nova Launcher:
Nova Launcher is a highly customizable home screen replacement app, allowing you to personalize your Android device look and feel.
2-Google Photos:
Google Photos is a great tool for storing, organizing, and sharing your photos and videos. It also offers automatic backup and unlimited free storage for high-quality photos.
3-Google Drive:
Google Drive is a cloud storage service that lets you store and share files, documents, and photos. It also integrates with Google Docs, Sheets, and Slides for productivity.
4-Spotify:
Spotify is a music streaming app with a vast library of songs, playlists, and podcasts. You can listen to music for free with ads or subscribe for an ad-free experience.
5-Microsoft Office Suite:
Microsoft offers Android apps for Word, Excel, PowerPoint, and Outlook, allowing you to work on documents, spreadsheets, presentations, and emails on the go.
6-Adobe Acrobat Reader:
This app lets you view, edit, and annotate PDF documents, making it useful for both personal and professional use.
7-LastPass:
LastPass is a password manager that securely stores your passwords and login information. It also includes a password generator to create strong and unique passwords.
8-Tasker:
Tasker is a powerful automation app that allows you to create custom tasks and automate various actions on your Android device.
9-Snapseed:
Snapseed is a robust photo editing app developed by Google, offering a wide range of editing tools and filters to enhance your photos.
10-SwiftKey Keyboard:
SwiftKey is a highly customizable keyboard app that offers predictive typing, emoji suggestions, and support for multiple languages.
Created By WEBTECHUT On 2023-09-11 05:48:47
INSTALL JDK 11 ON WINDOWS
1-Download JDK 11:
Visit the official Oracle website or another trusted source that provides JDK 11 downloads. As of my last knowledge update in September 2021, Oracle had changed their distribution model, and Oracle JDK was no longer free for commercial use. Instead, you can use OpenJDK, which is open-source and free to use. You can download OpenJDK 11 from the AdoptOpenJDK website, which provides pre-built OpenJDK binaries for various platforms: AdoptOpenJDK Windows Builds Choose the Windows x64 version (or x86 if you have a 32-bit system) and download the installer package (e.g., the .msi file).
2-Run the Installer:
Locate the downloaded installer package and double-click it to run the installer.
3-Installation Wizard:
Follow the installation wizard instructions. Typically, you need to accept the license agreement, choose the installation directory (the default is usually fine), and select any additional components you want to install (such as the JRE or source code).
4-Complete the Installation:
Once the installation is complete, you should have JDK 11 installed on your Windows system.
5-Set Environment Variables (Optional):
Right-click on "This PC" or "My Computer" and select "Properties." Click on "Advanced system settings" on the left. Click the "Environment Variables" button. Under "System variables," find and select the Path variable, then click "Edit..." Add a new entry with the path to the "bin" directory of your JDK 11 installation. For example, if JDK 11 is installed in C:Program FilesJavajdk-11.0.1, you would add C:Program FilesJavajdk-11.0.1in to the list of paths.
6-Verify Installation:
Open a command prompt than run the commands and use upper box code to verify that JDK 11 is installed:
Created By WEBTECHUT On 2023-09-11 06:46:00
HOW TO INSTALL ANDROID STUDIO
1-System Requirements:
Ensure your computer meets the system requirements for Android Studio. You can check the official requirements on the Android Studio website.
2-Download Android Studio:
Visit the Android Studio download page and download the latest version for your operating system (Windows, macOS, or Linux).
3-Install Android Studio on Window's:
Run the downloaded installer. Follow the on-screen instructions. Choose the components you want to install (Android Studio, Android Virtual Device, etc.). Choose the installation location. Click "Next" and then "Finish" to complete the installation.
4-Install Android Studio on macOS:
Open the downloaded DMG file. Drag and drop the Android Studio icon into the "Applications" folder. Launch Android Studio from the Applications folder.
5-Install Android Studio on Linux:
Extract the downloaded ZIP file to your preferred location. Navigate to the extracted folder. Run the studio.sh script in a terminal to start Android Studio.
6-Initial Setup:
On the first launch, Android Studio will ask you to import settings from a previous installation (if any) or configure your IDE settings. You will also be prompted to download the Android SDK components. Follow the prompts to download and install these components.
7-Configure SDK and Virtual Devices:
Open Android Studio. Go to "File" > "Settings" (on Windows/Linux) or "Android Studio" > "Preferences" (on macOS). In the left sidebar, select "Appearance & Behavior" > "System Settings" > "Android SDK." Configure the SDK components you need and ensure you have at least one system image for creating virtual devices.
8-Start a New Project or Open an Existing One:
You can start a new Android project or open an existing project using Android Studio. Android Studio should now be installed and ready for Android app development. You can create, edit, and run Android apps using the integrated development environment (IDE). Remember to keep Android Studio and its components up to date for the latest features, bug fixes, and compatibility with newer Android versions.
Created By Amardeep Singh Brar On 2023-09-11 10:16:35
HOW TO TRACK ANYONE'S PHONE
1-To get a users location in JavaScript you can use the Geolocation API, which is supported by most modern web browsers. Here is a basic example Code of how to track someone location:
This code checks if the users browser supports geolocation, requests permission to access their location, and then retrieves the latitude and longitude coordinates if the user grants permission. You can use these coordinates as needed for your application. Please be sure to handle user permissions and privacy considerations when using geolocation in your web applications. It is essential to obtain user consent and provide clear information about how their location data will be used.test the above code in html page and than check in the browser console for get user latitude and longitude to get user location.
Created By Amardeep Singh Brar On 2023-09-12 07:16:02
REACT NATIVE DEVELOPMENT ENVIRONMENT SETUP
1-Node.js:
First we need to download and install node from the official website if you have not already: https://nodejs.org/
2-npm (Node Package Manager):
npm is included with Node.js. You can check if it`s installed by running npm -v in your terminal.
3-Yarn (Optional):
While npm works perfectly fine, Yarn is a popular alternative package manager. You can install Yarn globally using npm
4-Java Development Kit (JDK):
React Native requires Java to build Android apps. Download and install the JDK from the official Oracle website or adopt OpenJDK.
5-Android Studio:
For Android development, you will need Android Studio with the necessary Android SDK components. Download and install Android Studio from https://developer.android.com/studio.
6-Xcode (for macOS users):
If you plan to develop for iOS, you will need Xcode, which is only available on macOS. You can install it from the Mac App Store.
7-Open a terminal and install the React Native CLI globally using npm or Yarn:
8-Create a new React Native project:
copy above code than paste it on terminal
9-Navigate to your project directory:
copy above code than paste it on terminal
10-Start the development server:
copy above code than paste it on terminal
11-Open another terminal window and run your app on a simulator or a physical device. For example, to run on an Android emulator:
copy above code than paste it on terminal
12-For iOS:
Make sure you have your Android emulator or iOS simulator set up and running before executing these commands.
13-You should see your React Native app running on the simulator or device.
Now you have React Native installed and a basic project set up. You can start building your mobile app using React Native components and JavaScript.
Created By Amardeep Singh Brar On 2023-09-12 14:59:31
HOW TO GET WEB DEVELOPER JOB IN CANADA
1-Education and Skills Development:
Start by mastering the necessary web development skills. This includes HTML, CSS, JavaScript, and various frameworks and libraries like React, Angular, or Vue.js. Consider enrolling in coding bootcamps or taking online courses to gain structured learning and certification. Websites like Coursera, Udemy, edX, and freeCodeCamp offer valuable resources. having a bachelors degree in computer science or a related field can be an advantage.
2-Build a Strong Portfolio:
Create a portfolio website that showcases your best web development projects. Include both personal projects and any freelance work you have done.
3-Networking:
Attend Meetups and Conferences: Participate in web development meetups and conferences in Canada. These events are excellent opportunities to network with professionals in the field. Join Online Communities: Engage in online developer communities like GitHub, Stack Overflow, and Reddit. Build a positive online presence.
4-LinkedIn and GitHub:
Maintain an updated LinkedIn profile that highlights your skills, experience, and projects. Use GitHub to showcase your coding skills and contributions to open-source projects.
5-Prepare a Strong Resume and Cover Letter:
Tailor your resume and cover letter to the job you are applying for. Highlight relevant skills and experience.
6-Job Search:
Look for job openings on various job search platforms, including LinkedIn, Glassdoor, Indeed, and specialized tech job boards like Dice or GitHub Jobs. Apply for entry-level web developer positions to gain experience if you are just starting in the field.
7-Ace the Interview:
During interviews, demonstrate your technical knowledge, problem-solving abilities, and your fit with the company culture
8-Continuous Learning:
Stay up-to-date with the latest web development trends and technologies.
9-Be Persistent:
The job search can be competitive. Do not be discouraged by rejection and keep applying.
Created By WEBTECHUT On 2023-10-14 17:38:21
REACT-CARD-SLIDER-COMPONENT EXAMPLE
1-To Creatie a React card slider component you have use libraries like react-slick or create your own custom component. I'll provide an example using react-slick, which is a popular slider library for React.
First, make sure you have React and react-slick installed in your project if not than copy upper code and run in your project cmd.
2-Now, you have to create a basic card slider component:
In this example, we create a CardSlider component that takes an array of card data as a prop (data). It uses the react-slick library to create a responsive card slider. You can customize the number of slides to show and other settings by modifying the settings object.
3-To use this component in your application, import it and pass an array of card data to it. Here's an example of how you might use it:
A basic card slider using react-slick. You can customize the card appearance and slider behavior by modifying the CSS and the settings object in the CardSlider component.
Created By WEBTECHUT On 2023-10-21 05:40:46
HOW TO USE GOOGLE PAY
1-Download and Set Up Google Pay
Download the app: If you don’t have it already, download the Google Pay app from the Google Play Store for Android or Apple App Store for iOS.
Sign in: Open the app and sign in with your Google account. If prompted, allow permissions for contacts, location, and storage to enhance the app experience.
2-Add Payment Methods
Add a credit/debit card: Go to the Payment methods section in the app and tap Add a credit or debit card. You can scan your card or enter the details manually.
Add a bank account (for UPI in supported countries): If you’re in a country that supports UPI (like India), link your bank account for easy transfers.
3-Verify Your Payment Method
For cards, you may need to verify through a one-time passcode sent via SMS or email.
For bank accounts, follow the prompts to authenticate, usually via a phone number registered with your bank.
4-Using Google Pay for In-Store Payments
Enable NFC: Ensure that NFC (Near-Field Communication) is turned on in your phone’s settings (for Android users).
Tap to pay: Look for the contactless symbol at checkout. Unlock your phone, hold it near the payment terminal, and wait for the confirmation.
5-Send and Receive Money
In the Google Pay app, go to Send and select or add the contact you want to pay.
Enter the amount, add a note if needed, and confirm the payment.
For receiving money, share your Google Pay UPI ID or let others scan your QR code.
6-Online Purchases and Bill Payments
Look for Google Pay as a payment option on websites and apps. Select Google Pay at checkout, and confirm the payment in the app.
Bill Payments: You can pay utility bills, recharge mobile plans, or book services directly in the app if supported in your region.
7-Keep Track of Your Transactions
Google Pay provides a transaction history in the app where you can review all your payments and receipts.
8-In the Google Pay App You can reach Google Pay's customer support
Open the Google Pay app.
Go to Help & Feedback by tapping on your profile picture in the top right corner.
Select Contact us to get support options, which may include chat, email, or phone support based on your region.
9-Google Pay Support Website:
Visit the Google Pay Help Center for FAQs, troubleshooting tips, and options to contact support.
10-Phone Support (Region-Specific):गूगल पे कस्टमर केयर नंबर
In the U.S.: You can call Google Pay support at 1-888-483-6396 (available 24/7).
In India: The Google Pay helpline number is 1-800-419-0157 (available 24/7).
For other regions, check the Google Pay Help Center or within the app for the most accurate and up-to-date contact information.