menu
up-caret
down-caret

React

A community of developers, designers and others who love React.js. ⚛️

# General

General chat

Trending conversations
How to organize my code
@simonmilleto · 19h
New website for React developers
@kheruc · 21d
Using useEffect to load (console.log) an "easter 🥚"
@intercoder · 4h
Large multi-tenant React apps
@gregoralbrecht · 19h
I have an idea of building a developer centric blogging platform
@srinivas · 13h

reactjs

December 25, 2018 at 6:15pm

any advice for a newbie react dev?


December 25, 2018 at 7:47pm

For one, understand the difference between props and state and when to use each. Have a little bit understanding of es6 new features and functional programming. Don't be overwhelmed. Don't learn redux just yet.i can go on

like-fill
3
  • reply
  • like

Don't forget to practice building components and glueing them together. Basically pass props and state between them and sprinkle a little bit of side effects here and there

  • reply
  • like

Learn JS really well. Don't know why there's so many React courses and yet, JS courses seem to be lacking. You don't "write react"; you write JS

like-fill
1
  • reply
  • like

There are really not that many APIs from React. Start using the latest major version (16.7.0). You'll have access to what is current and won't start learning deprecated/unsafe APIs.

  • reply
  • like

You will find the react docs very helpful :) https://reactjs.org/docs/hello-world.html

Edited
like-fill
2
  • reply
  • like

You will find the react docs very helpful :) https://reactjs.org/docs/hello-world.html

I agree :)

like-fill
4
  • reply
  • like

Personally I found it easier to get into how React works by starting with GatsbyJS, that way you can gradually move from basic JSX templating to the other APIs Clayton mentions above. More about this approach here: https://www.lekoarts.de/en/blog/how-gatsby-scales-with-your-expertise-and-scope

like-fill
1
  • reply
  • like

Yes. Remember that React is only the View and Controller side of what you could consider an MVC pattern. Model you need to design yourself. i.e. State management. Go straight to ES6, don’t bother with anything else. Follow the container/component model of structure. Read a lot about React, especially the state management side of things...

  • reply
  • like

Yes. Remember that React is only the View and Controller side of what you could consider an MVC pattern. Model you need to design yourself. i.e. State management. Go straight to ES6, don’t bother with anything else. Follow the container/component model of structure. Read a lot about React, especially the state management side of things...

like-fill
1
  • reply
  • like

December 26, 2018 at 8:12am

Some points if you want to go fast with React:

- Never use setState

- Never use Context

- Never use side-effect in your React Component

Learn Redux without React.

Learn Redux with React.

  • reply
  • like

Learn to make your first React project for production ready, not hobby ready.

Actually, you don't even know the existence of setState, Context to be productive with React.

Edited
like-fill
1
  • reply
  • like

I disagree about this, I tend to disagree with any advice that starts with 'never use' without any clear explication why. "Never use setState" well ... why though ?

@mukhtar-mohamed I suggest you to just start building small apps, do not bother about anything, do just get shit done using what react offers you out of the box (setState, Context,) then, at some point, you will encounter some limitation and you will discover alternatives. Also, read, read, read a lot from well known experienced react developers, take a look at egghead / frontendmasters / twitter to learn.

Take a look at thenetninja react course.

Start building :)

Edited
  • reply
  • like

learn the basics and then check the videos on https://egghead.io/.

like-fill
2
  • reply
  • like

I disagree about this, I tend to disagree with any advice that starts with 'never use' without any clear explication why. "Never use setState" well ... why though ?

@mukhtar-mohamed I suggest you to just start building small apps, do not bother about anything, do just get shit done using what react offers you out of the box (setState, Context,) then, at some point, you will encounter some limitation and you will discover alternatives. Also, read, read, read a lot from well known experienced react developers, take a look at egghead / frontendmasters / twitter to learn.

Take a look at thenetninja react course.

Start building :)

thank you @mehdi

like-fill
1
  • reply
  • like

i am newbie in reactjs

  • reply
  • like

Please do not listen to any advise from @revskill. React APIs are solid and should be used properly.

like-fill
2
  • reply
  • like

January 14, 2019 at 12:56pm

I'm seriously. Learn to use recompose (and maybe hooks instead). Stop flooding your production application with nonsense setState

  • reply
  • like

I'm seriously. Learn to use recompose (and maybe hooks instead). Stop flooding your production application with nonsense setState

Hooks are not even out yet lmao.

Don't listen to this guy

  • reply
  • like

If you want to add state to your React component, use withStateHandlers and done.

  • reply
  • like

I wasted so much time playing around with setState, the cost of refactoring and moving things is too high with setState. It's my advice, you can follow or not, it depends on you.

  • reply
  • like

The ReactJS docs is for beginner. It has no abstraction or reusing guide. That's why if you want to move fast, don't go deep too much with ReactJS docs. Use a good library like recompose and for the God Sake, i recommend you to do it, too.

  • reply
  • like

I just wish someone just told me the same long time ago, that just use recompose and done. You don't need setState to be good with React.

  • reply
  • like

Hey @revskill - don't know where you're getting these ideas but please stop posting nonsense here. It's hard enough on beginners to have a general sense of direction and when someone comes along with some completely off-the-wall statements (ones that are completely opposite from official docs), it's even more frustrating. This is the place to offer insightful and meaningful advice, which you have not done. Thanks

Edited
  • reply
  • like
Show more messages