Skip to content
theLoneCoder text logo

WHY HAVE FRIENDS WHEN YOU HAVE CODE

  • Home
  • JavaScript
    • React.js
    • Node.js
    • DOM
  • Other
    • Bash/Terminal
    • Resources and Reviews
  • About Me
  • Contact Me
JavaScript
What is a MERN Stack and How Do I Create One?
January 17, 2023
React Tutorial for Beginners: Introduction to React.js
React.js
Introduction to React.js | React Tutorial for Beginners
January 31, 2023
React.js
5 Most Important React Skills to Get a Job
January 16, 2023
apt upgrade: The following packages have been kept back
Bash/Terminal
[FIXED!] apt upgrade: the following packages have been kept back
April 28, 2023
create-react-app tutorial
React.js
Create-React-App | React Tutorial for Beginners
January 31, 2023
structure of a React application
React.js
React File Structure | React Tutorial for Beginners
February 24, 2023

[FIXED!] apt upgrade: the following packages have been kept back

Posted on April 28, 2023May 1, 2023 By theLoneCoder No Comments on [FIXED!] apt upgrade: the following packages have been kept back
[FIXED!] apt upgrade: the following packages have been kept back
Bash/Terminal

[FIXED!] apt: The following packages were kept back A common problem on Linux operating systems is when you run the update command (such as sudo apt update && sudo apt upgrade) and receive the following output: Here, I will show you how to fix that issue, as well as explain why it happens. How to … Read More “[FIXED!] apt upgrade: the following packages have been kept back” »

[FIXED!] ReactDOM Deprecation notice | ReactDOM.render vs. createRoot

Posted on April 25, 2023April 27, 2023 By theLoneCoder 1 Comment on [FIXED!] ReactDOM Deprecation notice | ReactDOM.render vs. createRoot
[FIXED!] ReactDOM Deprecation notice | ReactDOM.render vs. createRoot
React.js

With the React 18 update, thousands of React developers unexpectedly faced the following warning from within their applications, instructing us to use createRoot instead of ReactDOM.render: Let’s find out why this warning exists, and how to fix it in React 18. Deprecation notice: ReactDOM.render is no longer supported in React 18. Use createRoot instead. To … Read More “[FIXED!] ReactDOM Deprecation notice | ReactDOM.render vs. createRoot” »

How to Show and Hide React Components (Easy!)

Posted on April 24, 2023May 30, 2023 By theLoneCoder No Comments on How to Show and Hide React Components (Easy!)
How to Show and Hide React Components (Easy!)
React.js

To show and hide React components, use short-circuiting to check the visibility status and render the component if it is true.

How to Write Comments in React/JSX

Posted on April 20, 2023 By theLoneCoder 1 Comment on How to Write Comments in React/JSX
How to Write Comments in React/JSX
React.js

  When you begin to write your own React code, there’s something you’ll notice fairly quickly: normal JavaScript comments do not work in JSX. Writing comments in React and JSX markup works a little differently, but why? Let’s find out. Writing Comments in React First off, let’s get the elephant out of the room. To … Read More “How to Write Comments in React/JSX” »

The React useEffect Hook and How to Use it

Posted on April 20, 2023 By theLoneCoder No Comments on The React useEffect Hook and How to Use it
The React useEffect Hook and How to Use it
React.js

The React useEffect hook is one of the most common (and useful) hooks in React. In this guide, I’m going to walk you through understanding and using the useEffect hook in your components. Prerequisite Knowledge React hooks Functional components What are side effects in React? If you have been programming for a while, you may … Read More “The React useEffect Hook and How to Use it” »

What Are React Hooks? | React Tutorial for Beginners

Posted on April 19, 2023April 20, 2023 By theLoneCoder 2 Comments on What Are React Hooks? | React Tutorial for Beginners
What Are React Hooks? | React Tutorial for Beginners
React.js

  React hooks are a notoriously confusing part of using functional components. While class-based components have certain built-in features thanks to deriving from the React.Component class, functional components have to “hook into” these features. In the previous article, we learned about props in React. In this guide, I’m going to explain what react hooks are, … Read More “What Are React Hooks? | React Tutorial for Beginners” »

React Props in Functional and Class Components

Posted on April 7, 2023April 19, 2023 By theLoneCoder 2 Comments on React Props in Functional and Class Components
React Props in Functional and Class Components
React.js

  React props are extremely important in more complex React apps. They provide a way for data to pass down through the component tree. In this guide, we’re going to learn how to use props in React — in both functional and class-based components. Prerequisite Knowledge React Functional Components React Class-based Components Contents What Are … Read More “React Props in Functional and Class Components” »

React State: useState and setState | React Tutorial for Beginners

Posted on March 27, 2023April 7, 2023 By theLoneCoder 1 Comment on React State: useState and setState | React Tutorial for Beginners
React State: useState and setState | React Tutorial for Beginners
React.js

  React state is one of the central concepts of the entire React library. Without it, our React components can only become so complex and our apps will never do anything interesting. So in this article, I’m going to guide you through understanding React state from beginning to end, covering both functional and class-based components. … Read More “React State: useState and setState | React Tutorial for Beginners” »

Conditional Rendering in JSX | React Tutorial for Beginners

Posted on March 6, 2023May 3, 2023 By theLoneCoder No Comments on Conditional Rendering in JSX | React Tutorial for Beginners
Conditional Rendering in JSX | React Tutorial for Beginners
React.js

Conditional rendering in JSX is one of the best ways to “level up” your components. When developing React components, there are many times when you need a bit of markup to be more dynamic – that is to say, it may change depending on different factors. In this guide, we’ll explore a powerful feature of … Read More “Conditional Rendering in JSX | React Tutorial for Beginners” »

React onClick and Other Events | React Tutorial for Beginners

Posted on February 24, 2023April 6, 2023 By theLoneCoder No Comments on React onClick and Other Events | React Tutorial for Beginners
React onClick and Other Events | React Tutorial for Beginners
React.js

The React onClick event is one of many “event listeners.” Adding event listeners to React components is one of the most important capabilities of the framework. Event listeners are used to make your application interactive. You can take certain actions when a button is pressed, a form is submitted, or when pretty much anything happens … Read More “React onClick and Other Events | React Tutorial for Beginners” »

Posts navigation

1 2 … 4 Next
  • YouTube
  • GitHub
  • CodePen
  • Twitter
Substack

Subscribe to theLoneCoder!

Get updates on all new tutorials and blog posts from theLoneCoder.

Thank you!

You have successfully joined our subscriber list.

Recent Posts

  • [FIXED!] apt upgrade: the following packages have been kept back
  • [FIXED!] ReactDOM Deprecation notice | ReactDOM.render vs. createRoot
  • How to Show and Hide React Components (Easy!)
  • How to Write Comments in React/JSX
  • The React useEffect Hook and How to Use it

Categories

  • Bash/Terminal
  • DOM
  • JavaScript
  • Node.js
  • Other
  • React.js
  • Resources and Reviews
  • Home
  • Privacy Policy
  • About Me
  • Contact Me
  • YouTube

Copyright © 2023 theLoneCoder.

Theme: Oceanly News Dark by ScriptsTown