News for hackers. Stuff that matters.
Re:React in patterns by dsp1234 on Tuesday July 26, 2016 @02:06PM (#12167581)
I started with this tutorial[0] that covers react with no JSX, no Flux, no ES6, and no Webpack.

It is just a couple of script includes and normal html/javascript.

From that tutorial, I was able to understand exactly what react is. Then I started adding in the other items on top.

It's definitely not a boilerplate "site in 5 minutes", but it's also a lot less confusing when trying to learn what's going on underneath the hood with react.

[0] - http://jamesknelson.com/learn-raw-react-no-jsx-flux-es6-webp...

Re:React in patterns by dceddia on Tuesday July 26, 2016 @02:15PM (#12167646)
This was my first exposure too. Once you're ready to build an app with JSX (probably right after you finish that tutorial and realize that typing React.createElement all over will get painful), check out the new tool Create React App[0] by Dan Abramov and the folks at Facebook. It's an official generator that'll get you going with no build to set up, and a bare minimum of necessary code, basically one step above Hello World.

I'm working on a book about learning React by itself, without Redux and Webpack and all the other tools that distract from learning the basics. Hope to have it out in the next week or so.

[0] https://github.com/facebookincubator/create-react-app

Re:React in patterns by rimunroe on Tuesday July 26, 2016 @05:46PM (#12168957)
Why would you use React.createElement everywhere instead of just wrapping classes (or the imports of those classes) in React.createFactory?