Coder Social home page Coder Social logo

byletor / react-toggle-switch-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gladchinda/react-toggle-switch-demo

0.0 0.0 0.0 144 KB

Source code for a simple demo app showing how to build a custom toggle switch for React applications.

License: MIT License

HTML 8.19% CSS 34.53% JavaScript 57.28%

react-toggle-switch-demo's Introduction

Building Toggle Switch (React Demo)

This project contains a demo source code showing how to build a custom toggle switch component for a React application, which can be used as a substitute for controls like checkboxes.

Prior experience working with the React framework is required for complete understanding of the demo code. You can checkout the docs to learn more about React.

Here is a screenshot of the demo React application:

Demo Application

Before you begin, make sure you have npm and node installed on your system. It is recommended that you use yarn instead of npm to run and manage the package. Follow this guide to install yarn on your system.

Once you have either yarn or npm installed, run the following commands to get started.

Note that this demo was bootstrapped using the create-react-app package. You can look through this extensive guide for the available scripts.

Using NPM

npm install
npm start

Using Yarn

yarn
yarn start

You can also get a live demo on Code Sandbox.

Edit toggle-switch

react-toggle-switch-demo's People

Contributors

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