- Mounting
- Updating
- Unmounting
Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
Thursday, March 31, 2022
How to use lifecycle methods in React? Example Tutorial
Tuesday, March 29, 2022
How to use String.matches() with Regular Expression in Java? Example Tutorial
The string matches method in Java can be used to test String against regular expressions in Java. The string matches() method is one of the most convenient ways of checking if a String matches a regular expression in Java or not. Quite often we need to write code that needs to check if String is numeric, Does String contains alphabets e.g. A to Z or a to Z, How to check if String contains a particular digit 6 times, etc. There are so many cases in Java programming where we need a regular expression.
Monday, March 28, 2022
How to prepare for Google Cloud Machine Learning Engineer Exam?
Saturday, March 26, 2022
How to Prepare for Google Cloud Security Engineer Exam
The world is changing, so does the studying procedure. In today's world, everything is before us, any course, any certificate can be accomplished using a single gadget. But, maximum of us are deluded by assigning unmerited & boring courses, which lack in quality. In the path of this article, I'll be directing you to some splendiferous resources that would help you undoubtedly. To succeed in this target, I've vetted a tracing of tactics. In this plan, I've fractioned the sketch into three parts – accumulating wisdom via courses & books, and evaluating your gained wisdom into practice tests. Let's buckle down into the details of the Google Cloud Security Engineer Exam and analyze this exam, strategies, what it is to pass this exam.
Thursday, March 24, 2022
How to use Switch Statement and Expression in Java? Tutorial with Examples
int value;
Now, suppose this int can have up to 5 values associated with it. Let’s say {0, 1, 2, 3, 4}.
For each value, we need to do different processing.
Monday, March 14, 2022
Understanding "Lifting State Up" in React - Example Tutorial
If you have ever worked with React, then you know the importance of state management. The state is managed within the component and decides the component’s behavior. But as the application grows, the state is required to be shared among the different components. For such global state sharing, third-party libraries such as Redux are used.
Apart from managing the state inside a component or using redux for the global state, there is one more way to work with the state. This is called “lifting state up”. In this article, we will discuss what is “lifting state up” in React with the help of an example.
Sunday, March 13, 2022
Higher Order Components in React - Example Tutorial
Tuesday, March 8, 2022
How to Create Custom hooks in React.js? Example Tutorial
The introduction of React hooks in React version 16.8 changed the React development completely. The web application development using React was mostly limited to class components because the state and lifecycle methods were not supported in the functional components. But with React hooks, the state can be used in functional components. Moreover, lifecycle methods like functionality can also be achieved using the useEffect hook.
Monday, March 7, 2022
How to do Type checking in React using PropTypes? Example Tutorial
Sunday, March 6, 2022
How to use React forms in JSX? Example Tutorial
Introduction
Forms are an essential part of web application development. You can find forms on almost every website you visit. Forms are important because they are used to handle input from the users. Websites will not function properly if there is no way for input handling.
Input can be taken in various forms. The most common type of input is text input. Other forms of input are checkboxes, radio buttons, and ranges.
In React, forms are created like they are created in HTML. The most important part of forms in React is handling them. In this article, we will discuss how to create forms in React and handle them.
Saturday, March 5, 2022
How to use "styled-components" in React? Example Tutorial
Introduction
Today, no website is complete without CSS. The user experience is heavily dependent on the CSS applied to the website. Without CSS, the website will look extremely unpleasant. So to make a website attractive and user-friendly, it is necessary to apply top-notch CSS.
Since its introduction in 1996, CSS has changed a lot. Over time CSS has undergone many changes and lots of new features are added to it. Moreover, to make the developer comfortable, CSS frameworks, libraries, and tools are invented. One such tool is styled-components and in this article, we will discuss what are styled-components and how to use them in React.
Wednesday, March 2, 2022
What is context API in React? Example Tutorial
Props and state are essential parts of a React component. While the state is controlled within the component, props are passed to it from the parent component. In a huge React application, a global state is generally created to pass the data around. Through props can also be used to pass data around multiple components but that can lead to unwanted situations. To avoid such unwanted situations, React provides the Context API. In this article, we will discuss what Context API is and how (and why) it is used.