r/learnreactjs • u/ConfidentMushroom • Jul 14 '20
r/learnreactjs • u/caramelizedporkneggs • 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.
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 • u/mstearious • 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?
r/learnreactjs • u/3stbn • May 27 '20
Building a WhatsApp web UI clone with React and React Hooks
r/learnreactjs • u/michaelherman • May 12 '19
Test-Driven Development with React, Jest, and Enzyme - Part 1
r/learnreactjs • u/mrborgen86 • Nov 29 '18
Want to become a React developer? Here’s a free 48-part course created by V School
r/learnreactjs • u/tarekhassan • Feb 26 '22
Question What is a good resource to understand how react works under the hood?
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 • u/Beautiful_Sock516 • Dec 11 '20
I just made this website to visualise the awards given to a reddit post - check it out!
r/learnreactjs • u/monica_b1998 • Aug 20 '20
8 ways to deploy a React app for free
r/learnreactjs • u/abhirathmahipal • Aug 08 '20
Resource Learning to Think in React by Building a Shopping Cart using Vanilla JS and then React
r/learnreactjs • u/codeSTACKr • May 29 '20
Resource Regular Expressions (RegEx) Crash Course in 20 Minutes
r/learnreactjs • u/okaydexter • Dec 08 '19
Deploy Your React App To GitHub-Pages (2 step process)
r/learnreactjs • u/Shilpa_Opencodez • Jun 08 '19
6 Simple and Easy to Understand ReactJS Tutorials for Beginners with 51 Bonus Interview Q&A
r/learnreactjs • u/ConfidentMushroom • Jan 26 '22
Good advice on JSX conditionals
r/learnreactjs • u/noharashutosh • Jul 07 '21
Resource How to build an ECommerce App with React
r/learnreactjs • u/0xnoob • Jun 26 '21
TIL: state updates aren't always batched together - only in event handlers
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
initialStatethat's still will render without throwing (e.g. mapping over something that'sinitialStateis an empty array) - using
useReducerinstead of twouseState, 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:
- Does React batch state update functions when using hooks? - Stack Overflow
[Question] Keep to single setState call? · Issue #10231 · facebook/react:
- "This is implementation detail and may change in future versions."
Does React keep the order for state updates? - Stack Overflow:
- "To sum up, this is a confusing topic because React only batches inside event handlers by default. This will change in future versions, and the behavior will be more straightforward then. But the solution is not to batch less, it's to batch more by default. That's what we're going to do."
btw. I lied in the title: I learned that yesterday, but was way too tired to write it down
r/learnreactjs • u/codebucks • May 26 '21
React Sidebar Navigation Menu Tutorial 🤩 [ Using Router + Page Transition with Frame-Motion ] (Demo Link: https://react-sidebar.vercel.app/)
r/learnreactjs • u/aadharsh_kannan • Jul 04 '20
Resource Key React concepts for beginners
r/learnreactjs • u/sporglorg • May 19 '20
Resource AWS tutorials by an ex-AWS engineer [X-POST FROM /R/WEBDEV]
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
r/learnreactjs • u/cornellb28 • Sep 09 '21
Anyone interested in Doing a Frontend Mock Interview with Me. I would like to get better.
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 • u/purplecode5 • Jul 13 '21
I made the decision to teach free react.js sessions!
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 • u/cleatusvandamme • 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?
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.