Coder Social home page Coder Social logo

insin / react-lessons Goto Github PK

View Code? Open in Web Editor NEW
102.0 6.0 1.0 374 KB

Tool for creating and taking interactive React tutorials

Home Page: http://insin.github.io/react-lessons/

License: MIT License

HTML 1.19% JavaScript 85.55% CSS 13.27%
react react-app lessons tutorials interactive experiment

react-lessons's Introduction

React Lessons

React Lessons is a tool for creating - and taking - interactive React tutorials, inspired by the Ractive.js Tutorial.

Taking tutorials

A tutorial consists of a number of lessons. Each lesson can include one or more steps (numbered across the top-right of the page).

Tutorial screenshot

A lesson step consists of:

  • Prose providing learning material.

  • An outline for code to be written to practice the step's material.

Writing JavaScript

JavaScript can be written in the panel on the right and executed by pressing Shift+Enter or using the Execute button.

The following variables are available for use in code:

  • React - the React library.
  • output - the DOM node for the output area below.

Code is transformed with Babel before being executed, so you can use:

Editing tutorials

Use the "Edit Mode" checkbox to toggle editing mode.

Editing mode screenshot

In editing mode, you can change the lesson name and edit the content of each step.

Step prose

Step prose is written in Markdown, with support for additional GitHub Flavored Markdown features.

Step code & solution

In editing mode, "Code" and "Solution" tabs will appear in the coding area:

  • Code is what the user will see in the coding panel when they open the step.

    Note: Code will be automatically executed each time the step is opened.

  • Solution (if provided) will allow use of the "Fix code" button to see a solution for the coding challenge.

Creating and deleting lessons and steps

In editing mode, extra toolbar buttons are also displayed to allow you to add new lessons and steps, or to delete the current lesson or step.

When you add more lessons to a tutorial, a menu will pop up on the left side of the page to allow you to navigate between them.

Exporting

You can export the current lesson using the "Export Lesson" button, or the complete tutorial using the "Export Tutorial" button.

You will be prompted to download a .json file containing exported data.

Importing

To import a lesson or a tutorial, use the "Import Lesson(s)" button to select a .json file, or drag and drop a .json file anywhere on the page.

Warning: if you import a tutorial, its lessons will replace everything you currently have.

MIT Licensed

react-lessons's People

Contributors

insin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zalmoxisus

react-lessons's Issues

Consider updating to Redux 1.0 RC

Redux 1.0 RC is out with breaking changes. No further API changes are expected in 1.0 so it may be a good time to port the example to 1.0 RC (in a branch). We will release 1.0 when the docs are ready.

You can find the comprehensive list of the changes in 1.0 RC against 1.0 alpha in the Redux 1.0 RC release notes. If you haven't ported to alpha yet, you'll need to apply changes from 0.12 to alpha first.

Thank you!
Please make sure to report any issues so we can release a stable 1.0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.