Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react custum toogle

//yarn add react-custom-toggle
//npm install react-custom-toggle

import React, { useState } from 'react';
import Toggle from 'react-custom-toggle';
     
const Example = () => {
  const [isSunShining, setIsSunShining] = useState(false);

  return (
    <Toggle checked={isSunShining} onChange={setIsSunShining} />
  );
};
Source by yairariel.github.io #
 
PREVIOUS NEXT
Tagged: #react #custum #toogle
ADD COMMENT
Topic
Name
7+4 =