[#Script #Coding] React Router 6 – Full Course

React Router 6 – Full Course

By freeCodeCamp.org
Published: Apr 24, 2023


freeCodeCamp.org This course will teach you to build real-world apps with React Router 6. Click here to get to the interactive version 👉 https://scrimba.com/links/react-router-6-course

Throughout the course, you’ll be building an app called “VanLife” – an Airbnb-style web app dedicated to renting out travel vans for your next big road trip!

As you build “VanLife”, you will learn all the important parts of React Router, such as layout and index routes, nested routes, filtering results with search parameters, protecting routes for authenticated users, and more. You will also learn about the new Remix-inspired data router APIs, including Loaders and Actions.

This course was created by Bob Ziroll, Scrimba’s Head of Education.
🔗 Follow Bob on Twitter here: https://twitter.com/bobziroll
🔗 Follow Scrimba on YouTube: https://www.youtube.com/c/Scrimba

⭐️ Get the code ⭐️
🔗 Via the Scrimba course: https://scrimba.com/links/react-router-6-course
🔗 Via the GitHub repo: https://scrimba.com/links/react-router-course-github-repo

⭐️ Prerequisites ⭐️
Before taking this course, you should already be well versed in HTML, CSS, JavaScript, and React.

💫 Links mentioned in course:**
🔗 Scrimba’s Learn React Course – https://scrimba.com/learn/learnreact
🔗 VanLife Figma Design – https://scrimba.com/links/figma-vanlife
🔗 Firebase – https://scrimba.com/links/firebase-homepage
🔗 Firestore Docs, get all docs in collection – https://scrimba.com/links/firestore-docs-get-all-docs-in-collectionfirestore-docs-get-all-docs-in-collection)
🔗 Netlify – https://scrimba.com/links/netlify-home-page
🔗 GitHub Desktop – https://desktop.github.com/
🔗 Mirage JS – https://miragejs.com/
🔗 Bob Ziroll’s GitHub – https://twitter.com/bobziroll

Introduction to React Router 6
Multi-page vs single-page apps
React Router Setup & BrowserRouter
Extra: Local Development
Routes
BrowserRouter & Routes challenge
Route, path, & element
Quick Re-org
Link
VanLife project bootstrapping
Initial Deploy to Netlify
Mirage JS Server
Challenge: Vans Page
Route Params
Nested Routes Intro
Fixing the Navbar with a Layout Route
Bootstrap the Host pages
Nesting the /host routes
Creating the Host Layout
Relative Paths
Index Routes
To nest or not to nest?
Add Footer
NavLink
Active Link Styling with NavLink
Adding Host Vans Routes
🔀 Optional Side Quest – Building out the Host Vans List and Detail Pages
Building out the Host Van Detail page
Relative Links
Back to all vans
Add /host/vans/:id Nested Routes
Add the Final Navbar!
Outlet Context
Update deployed version on Netlify!
Search Params Intro
useSearchParams
Challenge: Set up search params in VanLife
Filter the array w/ the search param
Challenge: Filter the vans in VanLife
Using Links to add search params
Challenge: Filter the vans with Links
Using the search params setter function
Challenge: Filter the vans with a setter function
Caveats to setting params
Merging search params with Links
Merging search params with the setSearchParams function
Challenge: Conditional rendering practice
Fix remaining absolute paths
Back to all vans
Link state
useLocation
Challenge: conditionally render the back button text
404 Page
“Happy Path” “Sad Path”
Quick update to our fetching code
Coding the Sad Path – Loading state
Coding the Sad Path – Error handling
Loaders intro
createBrowserRouter
Setting up the data router
Loader function
Challenge: Vans List Loader
useLoaderData
Challenge: useLoaderData in Vans List page
Use the loader data instead of the useEffect
Loaders Quiz
Handling errors
Add errorElement to vans route
useRouteError
Initial Login Form
Note from the future: importing image assets in Vite
Protected Routes
Parallel Loaders demo
Challenge: Protected Routes w/ loaders
Challenge: Protected Routes – pt 1
Aside challenge: move remaining fetching to loaders
Challenge: Protected Routes – pt 2
Send login message prompt to login page
Consume message from search param on login page
Pass message to Login page
🌶️ Take: Forms in React are bad
Setting up for authentication – happy path
Setting up for authentication – sad path
useNavigate()
React Router Form Component
Setting up the Action function
Add form and action to VanLife
Action function – params
Action function – request
Get form data in VanLife
Use data in action to log in
Better (but still fake) auth
Challenge: send user to /host route after log in
Form replace
useActionData
Action error handling
Action error handling in VanLife
useNavigation()
useNavigation in VanLife
get previous route pathname
redirectTo – pt 1
redirectTo – pt 2
redirectTo in VanLife
Deferring data
Promises and defer()
defer getVans()
Await component
Await in Vans route
Await vans refactor
React Suspense
Suspense in VanLife
Putting it all together – defer, Await, Suspense in HostVans
errorElements in remaining van loading pages
Placeholders are gone! 🎉
Cloud Firestore Setup 🔥
Cloud Firestore Code Setup
Collection reference and getVans() function
Create getVan() function
Refactor getHostVans function
Final loose ends
Outro

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

Top Headlines for April 27, 2023

Headline News from the Associated Press

Speed of US bank failures to play starring role in Fed, FDIC post-mortems


Markets

Analysis-China investment consensus cracks as politics fuel fears

South Korea, US to share nuclear planning to deter North Korean threat


Technology

Dell forecasts upbeat revenue on strong PC demand

House Republicans pass debt-ceiling hike, hoping to spur Biden to talks


Deals

Glencore says takeover bid for Teck Resources still stands

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#Photoshop #Tutorial] 🔥 Master Photoshop Blend Modes in 1 Minute

🔥 Master Photoshop Blend Modes in 1 Minute

By Photoshop Training Channel
Published: Apr 04, 2023


Photoshop Training Channel Remove ANYTHING From a Photo in Photoshop with this
new groundbreaking A.I.-powered Tool!

This game-changing feature harnesses the power of machine learning to effortlessly remove unwanted objects while preserving the integrity and depth of complex backgrounds.

Say goodbye to tedious editing and hello to the future of image manipulation.
Join us as we explore the revolutionary Remove Tool in Photoshop and learn how to transform your photos like never before!

I hope you learn a lot!

🎯 SUBSCRIBE to get more amazing Photoshop tutorials!
â–º https://hi.switchy.io/Subscribe-to-PTC

📘 INDEX – Remove Anything From a Photo in Photoshop
00:00 – Introduction
00:41 – How To Get The Remove Tool
00:49 – How To Use The Remove Tool
01:15 – How Does The Remove Tool Compare To Content-Aware?
02:07 – “Remove After Each Stroke” Option
02:58 – The Remove Tool Preserves Edges
04:01 – Remove AC Units From Buildings
04:37 – Remove All Distracting Elements From Photos
05:40 – Remove Blemishes with The Remove Tool
06:07 – Remove Flyaway Hair
06:34 – Remove Complicated Objects
07:25 – Remove Tourists from Vacation Photos
06:34 – Remove Complicated Objects
08:20 – Use The Remove Tool Alongside Other Tools 
10:08 – Remove a Chainlink Fence from a Photo
10:36 – Remove Eyebrows and Eyes with The Remove Tool

🔗 LINKS:

My New Podcast â–º https://www.youtube.com/playlist?list=PLSCxMu0u2UgkgbMn789nx9-iPA-dxTyAd

Premium Tutorials â–º http://ptcvids.com/shop

Become an Adobe Stock Contributor â–º https://swiy.co/Stock-Contributor  

💾 TUTORIAL DOWNLOAD
â–º

👍 CONNECT
● TikTok â–º https://www.tiktok.com/@jrfromptc 
● Instagram â–º http://instagram.com/photoshoptrainingchannel

📝 CREDITS
● Photoshop video tutorials by Jesus Ramirez

#PhotoshopTutorial #Photoshop #PTCvids

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#Script #Coding] VueJS Live Promo – Register Now!

VueJS Live Promo – Register Now!

By codeSTACKr
Published: Apr 21, 2023


codeSTACKr Register now and get 10% off! https://ti.to/gitnation/vuejs-london-2023/discount/Codestackr10

🦸 Become A VS Code SuperHero Today: https://vsCodeHero.com
🧑🏾‍🤝‍🧑🏽 Join my Discord developer community: https://discord.gg/A9CnsVzzkZ

_____________________________________

🛠️ Tools I use:
🟠 codeSTACKr Theme: https://marketplace.visualstudio.com/items?itemName=codestackr.codestackr-theme
🟠 STACKr Code Font (Exclusive to my VS Code Course – https://vsCodeHero.com)
🟠 SuperHero Extension Pack: https://marketplace.visualstudio.com/items?itemName=codeSTACKr.superhero-extensions
_____________________________________

💖 Show support!
PayPal: https://paypal.me/codeSTACKr
_____________________________________

👀 Watch Next:
Playlist: Web Development For Beginners – https://www.youtube.com/watch?v=Ez4yHS2dsN8&list=PLkwxH9e_vrAJ0WbEsFA9W3I1W-g_BTsbt
_____________________________________

🌐 Connect With Me:
Website: https://www.codestackr.com
Twitter: https://twitter.com/codeSTACKr
Instagram: https://instagram.com/codeSTACKr
Facebook: https://facebook.com/codeSTACKr
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#codeSTACKr #vuejs #learntocode

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

Top Headlines for April 26, 2023

Headline News from the Associated Press

McCarthy’s debt-ceiling bill tests unity of U.S. House Republicans


Markets

New BOJ chief’s first task may be to tweak forward guidance

Sudan’s Bashir and allies out of jail, Khartoum fighting flares


Technology

Dell forecasts upbeat revenue on strong PC demand

US Senators to introduce bill on Supreme Court conduct – WSJ


Deals

Japan’s Honda Motor in strategic collaboration deal with TSMC

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#AfterEffects #Video] 20 Ultimate Video Editing Tricks You NEED To Know!

20 Ultimate Video Editing Tricks You NEED To Know!

By Cinecom.net
Published: Apr 14, 2023


Cinecom.net (advertising @Lickd) (advertising @lickd) Sign up to Lickd with my link for 14 days free stock music and 50% off your first mainstream chart track – https://go.lickd.co/Cinecomv5 – Everyone should know these 20 Editing tricks! Learn how to Improve your editing skills with these basic and advanced tips.

Download Unlimited Video Assets
â–º http://storyblocks.com/Cinecom

More Creative Video Tricks
â–º https://www.youtube.com/playlist?list=PLV0ZcSTi6tB6KRE97gUKMPnrWnlFhVRjC

Read More
â–º https://www.cinecom.net/video-editing-tips/ultimate-editing-tricks/

👕 MERCH
â–º https://cinecom.net/merch

🎬 Check our Award Winning Courses
â–º https://cinecom.net/courses

💙 LETS CONNECT!
Instagram â–º http://cinecom.info/Instagram
Discord â–º http://discord.gg/Cinecom

💥 Download Unlimited Video Assets
â–º http://storyblocks.com/Cinecom

Praise You by Fatboy Slim
License ID: AdGkk6BBGpX

Points of Authority by Linkin Park
License ID: NXAJRYjqA0Z

Í Gær by Sigur Rós
License ID: l7XeW52OqrW

Life Goes On by Oliver Tree
License ID: eYpPvPzrLjB

Nightmares by easy life
License ID: 5Wy5mRe0yav

Love Me Again by John Newman
License ID: R3gao4Q6V67

Let You Love Me by Rita Ora
License ID: 5Eye7ONJvOJ

Worst of You by Maisie Peters
License ID: YoZ5WGPxg8M

C’est Comme Ça by Paramore
License ID: MKWMRr6Ekvd

Alarm by Anne-Marie
License ID: 7Yd47Zo6rQM

#Cinecom #VideoEditing #TipsAndTricks

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#Script #Coding] Bash Scripting Tutorial for Beginners

Bash Scripting Tutorial for Beginners

By freeCodeCamp.org
Published: Apr 11, 2023


freeCodeCamp.org Learn bash scripting in this crash course for beginners. Understanding how to use bash scripting will enhance your productivity by automating tasks, streamlining processes, and making your workflow more efficient.

✏️ Course created by @Herbertech

💻 Code: https://github.com/herbertech/bash-intro-tutorial

⌨️ (00:00) Introduction
⌨️ (03:24) Basic commands
⌨️ (06:21) Writing your first bash script
⌨️ (11:29) Variables
⌨️ (14:55) Positional arguments
⌨️ (16:23) Output/Input redirection
⌨️ (23:23) Test operators
⌨️ (25:19) If/Elif/Else
⌨️ (28:37) Case statements
⌨️ (32:16) Arrays
⌨️ (34:12) For loop
⌨️ (36:03) Functions
⌨️ (41:31) Exit codes
⌨️ (42:30) AWK
⌨️ (45:11) SED

🎉 Thanks to our Champion and Sponsor supporters:
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Erdeniz Unvan
👾 Justin Hual
👾 Agustín Kussrow
👾 Otis Morgan

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

Top Headlines for April 25, 2023

Headline News from the Associated Press

Hyundai Motor bolsters US presence with $5 billion EV battery venture


Markets

World Bank sees Western Balkan economies resilient despite subdued growth

Factbox-Countries scramble to evacuate foreign citizens from Sudan


Technology

Dell forecasts upbeat revenue on strong PC demand

Biden meets Tennessee state lawmakers to discuss gun control


Deals

Canada minister says Teck should stay in Canada amid Glencore bid

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#Video #Design] One Click Thick – The Thicken Generator in Cinema 4D

One Click Thick – The Thicken Generator in Cinema 4D

By School of Motion
Published: Apr 05, 2023


School of Motion In this tutorial Aharon Rabinowitz walks through one of the new features in Cinema 4D 2023 – the Thicken Generator. The tool allows you to add extra dimension to models with a lot of customizable options to suit your needs!

Ready to Learn Cinema 4D? Register for our C4D classes.
â›° Cinema 4D Basecamp – https://som.bz/3yMKrmc
🚣‍♀️ Cinema 4D Ascent – https://som.bz/42iQGM1
🎒 All School of Motion Courses – https://som.bz/3SUg5Yb

If you enjoyed this video from Aharon, make sure to check out his youtube channel for more awesome tutorials at http://youtube.com/aharonrabinowitz

Resources:
https://www.maxon.net/en/cinema-4d/features/thicken-generator
https://www.thepixellab.net/
https://www.core4d.com/ipb/store/product/42-core-primitives-10/
https://www.thepixellab.net/imperfect-metals-collection-for-redshift
https://www.thepixellab.net/bokeh-pro

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#Script #Coding] Extension! Easily Identify Multiple VS Code Windows

Extension! Easily Identify Multiple VS Code Windows

By codeSTACKr
Published: Feb 01, 2023


codeSTACKr VS Code Tip of the Day
You can tell how useful this visual studio code extension is with over 2M installs!!
Do you ever have multiple vs code windows open at the same time?
Maybe you have your backend code in one window and your frontend code in another. Or maybe you’re juggling multiple projects at the same time like me.

Context switching can become annoying when you’re trying to identify which window is which!
It doesn’t have to if you have the Peacock extension installed.
With this vs code extension, you can change the workspace color to be unique for each vs code window.

Become A VS Code SuperHero Today: https://vsCodeHero.com

Join my Discord developer community: https://discord.gg/A9CnsVzzkZ





Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

Proudly powered by WordPress
Creative Commons License
EricBrooks.Com® is licensed under a Creative Commons License.

Disclaimer: The views expressed herein are solely those of Eric Brooks. They do not necessarily reflect those of his employers, friends, contacts, family, or even his pets (though my cat, Puddy, seems to agree with me on many key issues.). In accordance to my terms of use, you hereby acknowledge my right to psychoanalyze you, practice accupuncture, and mock you incessantly with every visit. As the user, you also acknowledge that the author has been legally declared a "Problem Adult" by the Commonwealth of Pennsylvania, and is therefore not responsible for any of his actions. ALSO, the political views and products advertised on this site may/may not reflect the views of Puddy or myself, so please don't take them as an endorsement. We just need to eat.


Connect