Giter VIP home page Giter VIP logo

react-examples's Introduction

React Examples

This repository houses react examples which are uploaded to The Odin Project's CodeSandbox account. Ultimately, these examples appear as CodeSandbox embeds in The Odin Project's React Curriculum .

How To Add A React Example

  1. Read through the contributing guide.
  2. Make sure you have node, npm and npx installed. You may use the Installing Node.js lesson to install these tools.
  3. Fork & clone this repository. Install dependencies by running npm install.
  4. Create a new example folder by copying the boilerplate folder. And cd into it and install dependencies.
      cp -R ./boilerplate ./<example-name>
      cd ./<example-name>
      npm install
  5. Code out your example.
  6. Start the dev server npm run start to make sure the example runs as expected.
  7. Run npm run lint for ESLint and Prettier to format the code.
  8. Create the pull request. (remember to mention which lesson will require the example)

Naming examples

Make sure that examples are clearly named, meaning they should convey what the example is about on a glance. Examples:

// bad
example-1 
state-example 
arrays

// good
hello-world
passing-props 
rendering-arrays-in-jsx

Maintainer Instructions

  1. Login to the organisation's CodeSandbox account.
  2. Head over to CodeSandbox's GitHub import wizard.
  3. Insert example link to the "URL to GitHub" field.
  4. Click the "Open Sandbox" button to generate the sandbox.
  5. After the sandbox is live, click "Share", then "Copy Embed Code". This code will be placed in our markdown files where needed.

Note: Embed options need to be explored.

react-examples's People

Contributors

01zulfi avatar lofty-brambles avatar couchoftomato avatar rlmoser99 avatar

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.