r/learnreactjs • • May 09 '20

React Router Crash Course Part#3

Thumbnail
youtu.be
9 Upvotes

r/learnreactjs • • May 04 '20

Opinions about junior portfolio

9 Upvotes

Hi there!

Exactly one year ago i was taking my first steps towards the world of web development. I'm really enjoying the learning process so far, even though sometimes i'd like to share the experience with someone, (i'm completely self thought so far).

I started out with C, then went on python, i'm on Javascript now since January. At first i hated it. Coming from the previous two languages i could see lots of nonsense in it, or at least that's what i thought at the beginning. Slowly i started appreciating many aspects of it, (stuff like Array.map() it's plain awesome) and now is definitely my preferred language, and the one i feel most comfortable with.

I've been studying React for the past 2 months, and i'm really loving it. My goal now is to get better at it, and then get a job as a React dev.

If any of you guys could have a look at my portfolio so far, and give me some opinions about it, i would really appreciate it. Just please be completely honest, even if it may be harsh, that's the only way to learn.

Thanks in advance!

My portfolio: http://www.dipaololuigi.com/


r/learnreactjs • • Mar 16 '20

5 Recommended Tools for Optimizing Performance in ReactJS

Thumbnail
blog.bitsrc.io
9 Upvotes

r/learnreactjs • • Jan 24 '20

Passing data from a single JSON file from parent to child component in React using dynamic routes

9 Upvotes

Hello!

I'm trying to create a project that makes use of React dynamic routes.

Basically, my project does this: when I click on the Shop Page, a local JSON files is rendered in the Shop component, then when I click on an item from the Shop Component, a dynamic route is being created and its respective data is being show.

E.g. : instead of showing the 'Description Placeholder' text, I want to display the cars description. In the case of Ford KA, I want it to display 'Mini', for the Ford Fiesta I want 'Hatchback' and so on.

How can I pass this data from a parent to a child component? I looked up on Google and some tutorials make use of two API: they are comparing the id of one API which holds a list of items to the id of the other API which holds the item details. The problem is that I don't think I can do this with a local JSON file. I tried passing some data as props from the Shop component to ShopItems, but my code caused a plethora of errors in the console, so I ended up erasing that code to make this functional again.

Here is my Code and a CodeSanbox link:

App.js

import React from 'react';
import './App.sass';
import Nav from './components/Nav';
import About from './components/About';
import Shop from './components/Shop';
import ShopItem from './components/ShopItem';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';

function App() {
  return (
    <Router>
      <div className="App">
        <Nav />
        <Switch>
          <Route path='/' exact component={Home}/>
          <Route path='/about' component={About} />
          <Route path='/shop' exact component={Shop} />
          <Route path='/shop/:id' component={ShopItem} />
        </Switch>
      </div>
    </Router>
  );
}

const Home = () => {
  return (
  <div>
    <h1>Home Page</h1>
  </div>
)};

export default App;

Nav.js

import React from 'react';
import '../App.sass';
import { Link } from 'react-router-dom';
function Nav() {

  const navStyle = {
    color: 'white'
  };
  return (
    <div>
      <nav>
        <Link to='/'>
          <h3> Logo </h3>
        </Link>
        <ul className='nav-links'>
          <Link style={navStyle} to='/about'>
            <li>About</li>
          </Link>
          <Link style={navStyle} to='/shop'>
            <li>Shop</li>
          </Link>
        </ul>
      </nav>
    </div>
  );
}

export default Nav;

Nav.sass

nav
  display: flex
  justify-content: space-around
  align-items: center
  min-height: 10vh
  background: gray
  .nav-links
    width: 50%
    display: flex
    justify-content: space-around
    align-items: center
    list-style: none

Shop.js

import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class Shop extends Component {

  constructor(props) {
    super(props);
    this.state = {
      data: []
    };
  }

  componentDidMount() {

  fetch('./data.json')
  .then((res) => res.json())
  .catch(err => console.log(err))
  .then((data) => {
    //console.log('data:', data);
    this.setState({
      data: data
    })
  })
}

  render() {
    const { data } = this.state
    return (
      <div>
        {data.map(data =>
          <h1>
            <Link to={`/shop/${data.id}`}>{data.name}</Link>
          </h1>)}
      </div>
    )
  }
}

export default Shop;

ShopItem.js

import React, { Component } from 'react';
class ShopItem extends Component {

  render() {
    return(
      <div>Description Placeholder</div>
    )
  }
}

export default ShopItem;

data.json

[{"id": 1,"name": "Ford Ka", "description": "Mini"},
{"id": 2, "name": "Ford Fiesta", "description": "Hatchback"},
{"id": 3, "name": "Ford Focus", "description": "Hatchback"},
{"id": 4, "name": "Ford Mondeo", "description": "Sedan"}
]

r/learnreactjs • • Jan 05 '20

Create a responsive sign up and login modal form in react js

Thumbnail
youtu.be
9 Upvotes

r/learnreactjs • • Dec 28 '19

How to use the useState hook in React

Thumbnail
youtu.be
9 Upvotes

r/learnreactjs • • Oct 21 '19

JavaScript – ECMAScript 6 Getting Started

Thumbnail
appdevservices.com
9 Upvotes

r/learnreactjs • • Oct 14 '19

What back-end should I learn for React CRUD apps?

9 Upvotes

I've been learning React and have become relatively comfortable with the fundamentals. I would like to go the next step and be able to create apps that store information somewhere and be able to make basic but fully functioning apps with sign in/sign up etc.

So my question is.

What backend should I learn for this? MERN stack? Firebase? I want to eventually become a front-end developer so an in depth back-end course is not what i'm looking for, more of a way for me to make apps from simple ideas I have to learn programming.

Thanks any resources or direction would be helpful.


r/learnreactjs • • Oct 08 '19

How to Build a Note-Taking App with GraphQL and React — Part 2 of 2

Thumbnail
blog.bitsrc.io
9 Upvotes

r/learnreactjs • • Aug 26 '19

Anyone have insight on / experience with the Superhi react.js course

9 Upvotes

The course cost $299 and you build 4 apps over 4 weeks. I've heard positive things about their other courses, especially from ux/ui designers trying to learn Shopify or command line, but yea, just looking for insights on this react.js course.


r/learnreactjs • • Aug 08 '19

New Part of React GraphQL Express tutorial ! (FR/EN) -> Apollo Client installation and HOC

9 Upvotes

Hello,
My new part (part 10) of React Huge Tutorial for Beginners is available.

Configuration of Apollo Client and introduction to High Order Components (HOC)

https://medium.com/@thibault60000/react-tutorial-fr-en-part-10-next-js-apollo-graphql-express-js-english-version-50f539631f96

I want to help young developers or developers that want to learn new technologies ! Available English and French Versions

#React #ReactJs #Express.js #Apollo #GraphQL


r/learnreactjs • • Aug 04 '19

Question Why use Refs in React?

9 Upvotes

I've gone over the docks and I see that they use the reasoning of

  • Managing focus, text selection, or media playback.

  • Triggering imperative animations.

  • Integrating with third-party DOM libraries.

But in the example they give wouldn't it be much simpler to just use the html name attribute when submitting? I guess I am just looking for the reason behind it, as the explanation doesn't quite do it for me (I may be missing something).


r/learnreactjs • • Jul 27 '19

Using React Hooks to Wrap Connectors to Live Data Sources

Thumbnail
medium.com
9 Upvotes

r/learnreactjs • • Jul 24 '19

Anyone interested in an idea I had for a react app that could help us learn and/or build up our GitHub portfolios?

9 Upvotes

I'm a mid-level react developer with an idea I've had for a while that I think would be a lot of fun to build with other developers trying to build up their portfolio/learn like me.

The basic idea is a site where students can register/log in and add a new "lecture" to their profile and ultimately make it available to other students. Say you find a great playlist on YouTube for mongodb, react, node, python, math, art, whatever. You create a new lecture and add the YouTube playlist (or just video) link. Add some keywords and the playlist description would get scraped/pulled from an API (I haven't looked into the YouTube API yet) and would ultimately create an entry for that video that can be searched for later. Once you add it you can take text notes as well as save your code in a code textbox that gets associated with the particular video and if you want the notes/code can be made public so people can compare notes and maybe pick up on something they didn't catch.

It's an idea I've had for a while and I feel like there are enough layers to it that would really make it a good project to learn on while creating a cool place for people to learn something new.

Anyone interested in it? I am hoping to find some people to collaborate on it with just to make it more of a real world "experience". I think having a full application+collaboration on our resumes would certainly instill some extra confidence in potential employers. Any thoughts?

Side note: not sure if this is bad for content creators so if it is please explain. I don't think they would get dinged in ad revenue or anything also I think we could create cool ways to share and promote the content creators through the app. Links to their social media and and different content outlets as well as maybe creating a way for them to manage and share their own content.

Also if there are any seasoned react developers that are interested and would like to offer some guidance during the project or just want to join in that would be really cool too!

Thanks! Sorry if this isn't a good way to do this but not sure where else to connect with react developers for something like this if not at r/learnreactjs


r/learnreactjs • • Jul 08 '19

Single page app tutorial.

9 Upvotes

I was looking for a good single page app tutorial. I have done a few react tutorials, but I have yet to find one where we build a full page app. Thanks in advance.


r/learnreactjs • • Jun 24 '19

"The Future of Web Development" - A true eye-opener

9 Upvotes

really makes you think about the unnecessary coupling of writing code and composing components

https://hackernoon.com/the-future-of-web-development-8da936743d5c


r/learnreactjs • • Mar 16 '19

Start building your next React application really fast

9 Upvotes

Wrote a few of my favorite methods to get a React application up and running in less than 3 minutes.

https://blog.linguinecode.com/post/get-started-with-react

Let me know if you have any other favorite tools that get you up and running in minutes that I haven't mentioned in the article!


r/learnreactjs • • Nov 07 '22

Resource 1 year as react dev, now what?

8 Upvotes

As the title indicates, I’ve been a react developer for a year now. I’m pretty confident in my skills but need to step up my game and get to the next level, I’m already a mid-lvl frontend dev. So what’s next?

I don’t want to find another company, just improve massively my react coding skills. Is there any (functional based) course with challenging and advanced topics? Anything that helped you? Just focusing on react as we don’t use Next/Remix atm.

Thanks in advance!


r/learnreactjs • • Oct 23 '22

Which one of these is correct? "onClick={someFunction}" or "onClick={someFunction()}"?

8 Upvotes

or another example:

onChange={someFunction}

or

onChange={someFunction()}

Which one makes it so when you click the button or make a change the function fires?

Is it the one without parenthesis?

Does adding the parenthesis turn it into a function call so when the button is rendered the function fires even if you didnt click the button or change anything?


r/learnreactjs • • Oct 22 '22

Question What tech stack do you need to use to run Python code in the backend with React as the front end?

8 Upvotes

I am an intern on the data team and the app uses Vue, Laravel, GCP and Python but I could be missing something… are these technologies all that is needed to run Python code in the backend? Could someone please help me understand how this tech works together to allow a scheduler to run Python code and then have that Python code send information back to the front end? Is the Python code likely stored on GCP or somewhere else?

And what would I need to use to do the equivalent of this with React?

Thank you.


r/learnreactjs • • Oct 15 '22

Build A Wordle Game Clone with REACT JS and Tailwind CSS

Thumbnail
youtube.com
8 Upvotes

r/learnreactjs • • Oct 03 '22

Deep Dive: Rendering in React

Thumbnail
youtu.be
8 Upvotes

r/learnreactjs • • Sep 28 '22

Question How to use a react dashboard template with existing react project?

8 Upvotes

I want to use a free Coreui react dashboard in my react project but I can't seem to figure it out. The dashboard itself has its src folder and can be run independently. I want to be able to do something like www.eg.com/dashboard to be able to get the dashboard. Www.eg.com would be my existing project


r/learnreactjs • • Sep 24 '22

Basic Interview Question -- Create a TODO App in React

Thumbnail
youtu.be
8 Upvotes