DEV Community

Cover image for React Pro Tips - (Spreading Props, Fixing Broken Images, etc.)
Alex Merced
Alex Merced

Posted on

React Pro Tips - (Spreading Props, Fixing Broken Images, etc.)

Watch My Intro to React Video Playlist Here: https://www.youtube.com/playlist?list=PLY6oTPmKnKbb5sh681mrY7u3Hm1g5ecze

React

I regularly post code snippet images on social media, to make sure you don't miss one make sure to follow me on social media.

Here are some of those images for your code enrichment!


Clearing Up Conditional Rendering

Passing Multiple Event Arguments

Using Fetch in UseEffect

Lifting State

Spreading Props

Create-React

NOTE: The webpack template name is actually reactwebp
Here is a few more quick ones

# Basic React Build
npx create-react-basic projectName
# Loaded React Build with Sass, Context, Router and some pre-build components
npx create-react-loaded projectName
Enter fullscreen mode Exit fullscreen mode

React Forms Psuedo Code

Using the Route Component

React Context

React Styling with Props

Higher Order Components

Fixing Broken Image

Top comments (0)