MCPcopy
hub / github.com/arkency/reactjs_koans

github.com/arkency/reactjs_koans @1.0.0 sqlite

repository ↗ · DeepWiki ↗ · release 1.0.0 ↗
64 symbols 74 edges 21 files 0 documented · 0%
README

React.js Koans

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.

Installation

Make sure you have Node.js and Python 2 installed.

  1. git clone https://github.com/arkency/reactjs_koans.git
  2. cd reactjs_koans
  3. npm run setup

Koans structure

  • Edit the files found in the exercises directory.
  • The koans directory contains the source of all the exercises. test contains the tests.
  • src a contains files compiled from exercises.
  • build contains sources launched in the web browser version of Koans.

Start a local web server (optional)

You can run a webserver and see your changes live in your web browser:

  1. Run command npm run start
  2. Visit http://localhost:8080/

Instructions

  1. Work on the code found in the exercises directory and run the tests to see if you did everything right.
  2. You need to do the exercises in the given order.
  3. Try to not peek at the test files! They contain spoilers.
  4. To run the tests, use npm run test. To automatically run tests when your code changes, use npm run watch.

More than just Koans

Blog

If you want to read more about React.js and modern JavaScript applications, check out our React Kung Fu blog.

The book

Rails meets React.js

For people who finished Koans, we prepared something to go continue: the React by example book. In this book, we explain how to create common widgets like password-strength meter or credit card input.

For the price of the ebook, you get:

  • Over 140 pages of React content. From fast introduction to React to example Todo app;
  • 11 practical real-world examples;
  • Repositories with code for most of the examples;

It's an early version of the book. It means some wording in book may change and there will be more examples later. All updates for the book are free.

You can use special 20% discount code: REACTKOANS. Grab your copy today or download a free chapter

Additional resources

  • 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.

License

The project is licensed under the free MIT license. You can read more about it in the LICENSE file

About

Arkency

React Koans is funded and maintained by Arkency. Check out our other open-source projects.

You can also hire us or read our blog.

Core symbols most depended-on inside this repo

render
called by 17
koans/06-RenderComponent.jsx
nameInParagraphEqualsTo
called by 2
test/03-WhatsYourName.js
renderNameComponent
called by 1
koans/06-RenderComponent.jsx
constructor
called by 0
koans/07-LifecycleMethods.js.jsx
componentDidMount
called by 0
koans/07-LifecycleMethods.js.jsx
componentDidUpdate
called by 0
koans/07-LifecycleMethods.js.jsx
componentWillUnmount
called by 0
koans/07-LifecycleMethods.js.jsx
render
called by 0
koans/07-LifecycleMethods.js.jsx

Shape

Method 36
Class 26
Function 2

Languages

TypeScript100%

Modules by API surface

koans/05-Challenge-GroceryList-part-4.jsx12 symbols
koans/05-Challenge-GroceryList-part-3.jsx11 symbols
koans/05-Challenge-GroceryList-part-2.jsx10 symbols
koans/05-Challenge-GroceryList-part-1.jsx8 symbols
koans/07-LifecycleMethods.js.jsx7 symbols
koans/03-WhatsYourName.jsx5 symbols
koans/06-RenderComponent.jsx4 symbols
koans/02-PartiesList.jsx3 symbols
koans/01-HelloWorld.jsx3 symbols
test/03-WhatsYourName.js1 symbols

Dependencies from manifests, versioned

babel5.6.14 · 1×
babel-core5.6.15 · 1×
babel-loader5.3.1 · 1×
express4.12.4 · 1×
jsdom6.5.1 · 1×
lodash3.8.0 · 1×
mocha2.2.4 · 1×
ncp2.0.0 · 1×
node-libs-browser>=0.4.0 · 1×
nodemon1.3.7 · 1×
onchange1.1.0 · 1×
react0.13.3 · 1×

For agents

$ claude mcp add reactjs_koans \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact