Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

What should i do to learn react?

Andrew Chalkley Hello sir, i wanted to learn react but don't know how to learn it can you please tell me how can i learn it, i wanted to learn react for making web app and mobo apps is there is any good resource you know about how to learn react for making using it in web app and on mobo apps???

I am not Andrew. I picked up React a little while ago because I wanted to make a desktop app using Electron.

I found the quick start section on the React site to be very good and easy to follow. It explains what React is, how it works and shows a number of demo applications built with React. It was all I needed to get started with React.

https://facebook.github.io/react/docs/hello-world.html

Jason Stanley thank you for your help but why did you need to learn react for making desktop app in electron, i also wanted or have to make a project, college project that's theme is "cross platform" so that's why i choose JS platform because i can make web, desk, mobo app using JS platform or different - different framework or libraries can you please tell i'm right or i can make cross desk app using 'Electron.js' i can make cross mobo app using 'React Native' i can make web app using 'Node.js' but why should i have to learn react.js for usign electron.js ?????

1 Answer

React isn't a requirement of Electron.js. It is optional. You could use jQuery, ember, angular, vue.js or none of these things and roll your own vanilla javascript.

My JavaScript skills got a little bit rusty so I wanted to do a side project to improve them. I wanted to make a finance app and as it was storing bank transaction information I didn't really want this information stored on a web server. Electron seemed like a nice solution as it would be a desktop app without me needing to learn a completely new language to build it in.

React is quite popular and so I thought it would be a good thing to learn and that was why I chose to use it.

Last time I looked Electron cannot be used to make mobile apps. Instead it allows the creation of cross platform desktop apps. Think Windows, OSX and Linux.

A colleague at work has been using the ionic framework to make web and mobile apps. As far as I can tell there is no reason why you couldn't package the ionic code in Electron to make it work on desktop's to. However, I have not tried this. Could be something worth investigating though.

I cannot really recommend anything specific for your project. Just impart what I know :). I dabble in JavaScript for side projects. The bulk of my work is backend stuff in Go or PHP.

Going back to the original question. Have you looked at the React documenation? Did you find it helpful?

Ya I looked to the react docs it's really helpful to me thank you so much for your time :)