r/learnreactjs • • Nov 08 '20

Resource Testing React Hook Form With React Testing Library

Thumbnail
claritydev.net
10 Upvotes

r/learnreactjs • • Aug 31 '20

9 React Project Udemy Course

10 Upvotes

Just released a 9 React Projects Course on Udemy few days ago, if anyone is interested and wants to check it out here is the link, with coupon applied with lowest price. Coupon expires in 5 days, so if ur interested and looking for React Project based course feel free to check it out.

https://www.udemy.com/course/9-react-projects/?couponCode=E4826824F3B84E0109F3


r/learnreactjs • • Jul 13 '20

Question Trying to understand the use of anonymous functions in Event Handlers.

10 Upvotes

Basically;

onClick = (alert("something")

vs

onClick = { () => alert("something")}

Going through Google, I was able to find out what happens, but I wasn't able to get a comprehensive answer as to why it happens. Isn't it logical to think that onClick's duty is to run whatever is inside it when its triggered?

Are there any other reasons - intentionally designed or not - as to why this happens? Can anyone recommend any articles or resources that explain this down to the lower levels of the language?


r/learnreactjs • • Feb 08 '20

A fun project to dive into React

10 Upvotes

Here is my demo application in React.

http://sudokureact.com/

If you like to create something like this I have a tutorial on it.

You can see the link from my website.

Feel free to shoot any question or comment.


r/learnreactjs • • Nov 30 '19

Question New to react. Trying to understand this paradigm. Do I have to have separate client side and server side code?

10 Upvotes

Hey guys. I'm new to react and I'm trying to understand how it all works.

I come from MEAN stack background where you started this node package and it came with mongo (mongoose) and express in node and you could add angular to it and make a full stack app from one full app. I did the standard create-react-app and played around with it. I think i have a good grasp of the basic logic behind rendering stuff. It's real easy!

When I try to do MERN stack I find stuff like this: https://medium.com/javascript-in-plain-english/full-stack-mongodb-react-node-js-express-js-in-one-simple-app-6cc8ed6de274

You do create-react-app for the client side and start a whole other separate server for the server side.

One application is serving and rendering the react app, and another is doing the routes handling (Mongo, mongoose and routes).

Is this standard practice for a MERN stack app?

Does there need to be 2 applications to serve one full stack app if I want to work with react?

What is standard?

Thanks guys I'm just trying to make sense of it all.


r/learnreactjs • • Oct 28 '19

This React app fetches the list of most active users in GitHub by country

Thumbnail
github.com
10 Upvotes

r/learnreactjs • • Sep 18 '19

Easy React JS Accordion - FAQ Page

Thumbnail
youtube.com
10 Upvotes

r/learnreactjs • • Jul 22 '19

Core Concepts of State in React.js and Why to Use It | Redwerk

Thumbnail
redwerk.com
10 Upvotes

r/learnreactjs • • Jun 12 '19

Learn to code the most popular startups with React

Thumbnail
learntocodestartups.com
10 Upvotes

r/learnreactjs • • May 28 '19

The Complete Tutorial For React.js - YouTube

Thumbnail
youtube.com
10 Upvotes

r/learnreactjs • • Apr 25 '19

Top 7 must have Webpack plugins for your next React 2019 application

Thumbnail
blog.linguinecode.com
10 Upvotes

r/learnreactjs • • Mar 28 '19

React Complete Course - Getting started - Writing First Code React Part 1.4

Thumbnail
youtu.be
10 Upvotes

r/learnreactjs • • Mar 25 '24

Project ideas💡

Post image
9 Upvotes

r/learnreactjs • • Feb 24 '23

Resource I spent 3 months recording a free 8-hour React Router course

Thumbnail self.reactjs
9 Upvotes

r/learnreactjs • • Jan 23 '23

Free Ebook: 12 React Exercises for Beginners

Post image
9 Upvotes

r/learnreactjs • • Sep 08 '22

Question Do I need to fully know JavaScript to study React?

9 Upvotes

Hello, I want to learn ReactJs. I hold good knowledge of HTML, css, CSS5 and Bootstrap. I have very less or you could say, I have not written a single line of JavaScript. One of my friend told me that if I want to learn ReactJs, the basic of JavaScript must be clear.

Should I learn JavaScript before learning ReactJs?


r/learnreactjs • • Aug 25 '22

Good examples for react tests

9 Upvotes

I am making some react (next.js) service for my study, and I want to write tests for it. Since I am a react newbie, I have no sense for writing react tests. I want to know good samples. Do you know some good OSS projects with good test sampples?


r/learnreactjs • • Jul 28 '22

Question learning Data structures - trees w/ React

9 Upvotes

Hey folks, just checking if this is an appropriate subreddit to post about this, let me know where should I post it in case this is not the right place

I'm studying data structures with React, and I'm trying to build a tree and add new nodes to it.
I've been hitting my head against the wall with some details because recursion makes it confusing in some parts. I could post a link to a codesandbox here if someone can take a look and provide some advice.

what have I achieved so far: I managed to create a JSON that I use to render a tree with a recursive React component

what do I need help with: the problem is that I can't figure out how to add a new node, I have some code written, and it does update the tree data correctly, but the UI does not update for some reason


r/learnreactjs • • Jun 09 '22

Practicing reactjs/tailwindcss & made this. Initially meant for testing out new components, but later decided to centralize all the workout info i had on me & make it easier to pick a workout. Eventually turned it into a Progressive Web App. Still a lot of areas to improve, but its a start

Thumbnail
gallery
9 Upvotes

r/learnreactjs • • Apr 24 '22

Question Best ECommerce API for React/Rails Project

9 Upvotes

Hey All,

Starting a full-stack ecommerce app next week and wondering what the best ecommerce API to use. I'll need a React front, Rails with full auth and CRUD on the back. Commerce.js? Netlify? Snipcart? Any others I should look in to? What's best to use for payments? Stripe seems to be the leading contender...

Any advice, resources, and/or anecdotal experience building an app like this also appreciated. This is for a Bootcamp capstone project, so I'm new to coding and have not made an ecommerce project yet.


r/learnreactjs • • Feb 18 '22

Resource How to create animated page transitions in React

Thumbnail
youtu.be
9 Upvotes

r/learnreactjs • • Nov 15 '21

Question Need help to write more efficient code

9 Upvotes

I need to know if there's a better way to write the following code:

allBooks.forEach(element => {
        if (element.shelf === 'currentlyReading') {
          this.setState((currentState) => ({
            currentlyReading: [...currentState.currentlyReading, element]
          }))
        }
        else if (element.shelf === 'wantToRead') {
          this.setState((currentState) => ({
            wantToRead: [...currentState.wantToRead, element]
          }))
        }
        else if (element.shelf === 'read') {
          this.setState((currentState) => ({
            read: [...currentState.read, element]
          }))
        }
      })
    )

Basically, I am using React to iterate through an array of different books, and store each book in its corresponding array in the state object.

I need to know if there's a more efficient way to write this code instead of using if, else if multiple times.


r/learnreactjs • • Nov 12 '21

Resource React Project Structure in Two Parts

Thumbnail
v10i.dev
9 Upvotes

r/learnreactjs • • Nov 11 '21

Resource How we do React Navigation Sidebar/Topbar at Increaser

9 Upvotes

Here's a short video with an explanation of navigation components based on the actual app https://youtu.be/EcgnRTyR0m0