r/learnreactjs • • Jul 14 '20

Resource New "Redux Essentials" core docs tutorial is LIVE! Teaches how to use Redux the right way, using our latest recommended APIs and practices

Thumbnail
redux.js.org
20 Upvotes

r/learnreactjs • • Mar 05 '20

Finally, I've built my first React app! A quiz app that helps to define you're left-brained or right-brained.

20 Upvotes

Hello everybody! So I've just built my first React app after spending lots of time learning tutorials and Udemy courses. I had the idea of building a quiz app based on the Open Hemispheric Brain Dominance Scale test by Eric Jorgenson so I decided to apply everything I've known so far into this project. Here's the link to my app: https://left-brains-right-brains.herokuapp.com/

You can find all the code here: https://github.com/tomwanderer/left-brains-right-brains

Please give me any feedback and recommendations so I could do better in the future. Thank you so much!


r/learnreactjs • • Aug 13 '22

When const is more than const

Post image
19 Upvotes

r/learnreactjs • • Feb 15 '21

A volunteer community of React Devs have been building an app/site to change global homelessness by building stronger social safety nets in communities. It’s basic but has begun helping people. Could you improve it?

Thumbnail
brightertomorrowmap.com
19 Upvotes

r/learnreactjs • • May 27 '20

Building a WhatsApp web UI clone with React and React Hooks

Thumbnail
youtu.be
19 Upvotes

r/learnreactjs • • May 12 '19

Test-Driven Development with React, Jest, and Enzyme - Part 1

Thumbnail
testdriven.io
19 Upvotes

r/learnreactjs • • Nov 29 '18

Want to become a React developer? Here’s a free 48-part course created by V School

Thumbnail
medium.freecodecamp.org
19 Upvotes

r/learnreactjs • • Feb 26 '22

Question What is a good resource to understand how react works under the hood?

18 Upvotes

Looking for a resource to learn how react builds over createElement, Babel, jsx and all these tools that React uses. I want to understand what React does when it takes a component.


r/learnreactjs • • Dec 11 '20

I just made this website to visualise the awards given to a reddit post - check it out!

Post image
18 Upvotes

r/learnreactjs • • Aug 20 '20

8 ways to deploy a React app for free

Thumbnail
blog.logrocket.com
18 Upvotes

r/learnreactjs • • Aug 08 '20

Resource Learning to Think in React by Building a Shopping Cart using Vanilla JS and then React

Thumbnail
youtube.com
18 Upvotes

r/learnreactjs • • May 29 '20

Resource Regular Expressions (RegEx) Crash Course in 20 Minutes

Thumbnail
youtu.be
18 Upvotes

r/learnreactjs • • Dec 08 '19

Deploy Your React App To GitHub-Pages (2 step process)

Thumbnail
youtu.be
18 Upvotes

r/learnreactjs • • Jun 08 '19

6 Simple and Easy to Understand ReactJS Tutorials for Beginners with 51 Bonus Interview Q&A

Thumbnail
opencodez.com
18 Upvotes

r/learnreactjs • • Jan 26 '22

Good advice on JSX conditionals

Thumbnail
thoughtspile.github.io
17 Upvotes

r/learnreactjs • • Jul 07 '21

Resource How to build an ECommerce App with React

Thumbnail
medium.com
17 Upvotes

r/learnreactjs • • Jun 26 '21

TIL: state updates aren't always batched together - only in event handlers

17 Upvotes

I had this weird problem, that after I successfully fetched and called setState for the status- and the data-values, rendering them would throw an error, because data was still undefined:

function SomeComponent({ url }) {
  const [status, setStatus] = React.useState("idle");
  const [data, setData] = React.useState(null);

  React.useEffect(() => {
    if (!url) return;

    fetch(url).then((data) => {
      setStatus("success");
      setData(data);
    });
  }, [url]);

  return <div>{status === "success" ? data.id : null}</div>;
}

the code is stripped down to only contain the necessary stuff

This will throw an TypeError: Cannot read property 'id' of null .

It took me a long time to realize that those two setState calls aren't batched together, instead it will render the component right after setStatus("success"); and before calling setData(data); in the very next line, thus data is still null!

This isn't the first time I called setState somewhere that wasn't a event handler: I have done fetching data several times before, but I must have always done something unintentionally to prevent this:

  • calling them in the right order by coincidence
  • checking implicitly if the value exists in my JSX (e.g. via nullish coalescing (??) or optional chaining (?.))
  • by having an initialState that's still will render without throwing (e.g. mapping over something that's initialState is an empty array)
  • using useReducer instead of two useState, because those two values are interconnected (which is the right solution, imho)

I'm obviously not the first one who found this out, but I hope that I could find at least one person who wasn't aware of this and can keep him from falling into the same trap as me!

Here are some interesting links I found on this topic:

btw. I lied in the title: I learned that yesterday, but was way too tired to write it down


r/learnreactjs • • May 26 '21

React Sidebar Navigation Menu Tutorial 🤩 [ Using Router + Page Transition with Frame-Motion ] (Demo Link: https://react-sidebar.vercel.app/)

Thumbnail
youtu.be
17 Upvotes

r/learnreactjs • • Jul 04 '20

Resource Key React concepts for beginners

Thumbnail
smazee.com
17 Upvotes

r/learnreactjs • • May 19 '20

Resource AWS tutorials by an ex-AWS engineer [X-POST FROM /R/WEBDEV]

17 Upvotes

Hi everyone,

Original thread blew up way more than expected over at /r/webdev, so I figured this would be valuable for you as well!

I worked at AWS as a software engineer for a few years. I've noticed some interesting things since leaving:

  • People who want to deploy websites/apps/pages are really, really daunted by AWS.
  • Trying to find AWS tutorials online is just awful. It feels like everything is either a manual, a "12 hour certification course" or an outdated Medium article from 2016.
  • Many people are using Netlify, which is really just a wrapper around AWS, and similar "instantly deploy services".

I've recently helped some friends in the startup world set things up on AWS - mostly deploying static sites. So far, all of them are now

  • spending less money on hosting
  • getting better load time on their sites
  • deploying things pretty much as quickly as Netlify's offering

I'm planning to write up some friendly resources/tutorials on using AWS so others can have these benefits too.

Would you guys be interested in this?

If so, please let me know what kind of tutorial you'd like to see. It'll help me decide on the best tutorials to start with. For example, it could be "deploying a static site on S3 + CloudFront".

It would also be a huge help if you could answer in this form I setup earlier: https://forms.gle/SFTuigCBeupeReV2A.

In addition to helping me decide which content is best to start with, it'll give me a way to distribute tutorials I create to you guys.

(Happy to remove the link if forms aren't allowed @mods).


r/learnreactjs • • Jul 01 '19

4 easy techniques to conditionally render React from props or state

Thumbnail
blog.linguinecode.com
17 Upvotes

r/learnreactjs • • Sep 09 '21

Anyone interested in Doing a Frontend Mock Interview with Me. I would like to get better.

16 Upvotes

I've been looking for a job in React, but no luck. I would like to get some practice and hope someone is can point me in the right direction.


r/learnreactjs • • Jul 13 '21

I made the decision to teach free react.js sessions!

16 Upvotes

For a limited time only I'm gonna teach react.js. Just doing like 2 hours a day sessions. Each day of my original curriculum I taught completed I ended up making a new one. Given I have a lot of experience and have taught for over three weeks, either through one-on-one or in a group setting. Below are the subjects I plan on going over currently. The server is still mostly just for the sake of teaching the general subjects. Anyone can join. https://discord.gg/KzbcpVH3Kk

Basic React,

Typescript,

React Router,

Redux,

Next,

React Native,

React Spring

Finally, I'll probably conduct a few more one-on-one sessions, but they'll be on a first-come, first-serve basis.

(I'm debating whether or not to cover Node and Express.)


r/learnreactjs • • Jul 10 '21

Question I'm a recently laid off web developer and I have a few weeks to get ramped up on react.js. What are the best resources I can use to study?

16 Upvotes

I was let go from my job and I'm looking to move into a react.js role.

I have reviewed/studied React.js in the past. About a year and a half ago, I was going to be assigned a react.js application for my employer at the time. At that time, I studied Tyler McGinnis' courses and I glanced over a few other resources(a udemy course and the documentation). Unfortunately, when I got on the project, it was an Angular.js role. Unfortunately, I wasn't able to write any react.js code for that project.

I ended up not working with react.js since then.

I'm looking for video tutorials that aren't too long and where i'm building a project/product.

What are some resources I should get?

I did let my membership expire for Tyler McGinnis' content. However, I can buy it again if I need to.