If you want to learn React.js you came to the right place. We prepared a set of practical exercises that will help you learn React.js from square one. The only thing you need to know is JavaScript. Here we are using ECMAScript 2015 standard.
The Koans are a set of tasks to complete. Prepared tests checks if they are done correctly.
Make sure you have Node.js and Python 2 installed.
Fork the repo from Hackreactorclone reactjs-koans from your forkcd reactjs-koansnpm run setup
- Edit the files found in the
exercisesdirectory. - The
koansdirectory contains the source of all the exercises.testcontains the tests. srccontains files compiled fromexercises.buildcontains sources launched in the web browser version of Koans.
You can run a webserver and see your changes live in your web browser:
- Run command
npm run start - Visit http://localhost:8080/
- Remember about running the setup script before you start working on Koans!
- Work on the code found in the
exercisesdirectory and run the tests to see if you did everything right. - You need to do the exercises in the given order.
- Try to not peek at the test files! They contain spoilers.
- To run the tests, use
npm run test. To automatically run tests when your code changes, usenpm run watch.
- React docs - it's a great source of in-depth information about React.
- Why keys are important in React - great reading explaining the reason for React's keys.
- Reactiflux. User group on Slack. You can meet a lot of people using React there. There's a channel for beginners
needhelp.