About 11,100 results
Open links in new tab
  1. React Hooks example #1 counter - CodePen

    You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

  2. Basic Dropdown with React Hooks - CodePen

    const { useState, useEffect } = React; const data = [{id: 0, label: "Istanbul, TR (AHL)"}, {id: 1, label: "Paris, FR (CDG)"}]; const Dropdown = => { const [isOpen, setOpen] = useState(false); const [items, setItem] = useState(data); const [selectedItem, setSelectedItem] = useState(null); const toggleDropdown = => setOpen(!isOpen); const ...

  3. React Checkbox MultiSelect - CodePen

    const { Component, Children, PropTypes } = React const { Select, Option, utils } = Selectly const { getToggledOptions } = utils class CheckboxOption extends Component { render() { const { value, isChecked, children } = this.props return ( <Option className="react-select-option" value={value}> <input type="checkbox" className="react-select ...

  4. javascript - Multilevel drop downs with checkboxes in React

    Jan 11, 2022 · Create a multilevel dropdown dynamically in React and get the value of selected submenu in dropdown

  5. reactjs - trying to make a React dropdown with checkbox

    I am trying to make a simple dropdown with dropdown items as checkbox inputs. Currently I have this : constructor() { super() this.state= { expanded : false} showCheckboxes() { var checkboxes = document.getElementById("checkboxes"); if (!expanded) { checkboxes.style.display = "block"; this.state.expanded = true; } else {

  6. javascript - How to create checkbox inside dropdown ... - Stack Overflow

    Oct 6, 2013 · At first it is not possible to add checkboxes to select element directly. You need to use js for this purpose. There are basically two ways how to do "select" dropdown list with checkboxes: use select and create dropdown menu in another div element with inputs (type checkbox) which will be showed instead of original select options

  7. How to make a simple dropdown menu component in React

    Dropdowns are a common UI element that your React app will (probably) need. Here's a simple ReactJS dropdown menu that you can use, with code examples and how I built it. I've built a few dropdown components with React over the years, and …

  8. Dropdown by ReactJs - CodePen

    This div's content will be managed by React. --> </div> <!--{this.props.list.map((value, index) => <li key={index} onClick={() => this.chooseItem(value)}> <a>{value}</a> </li>) } <Dropdown list={["January","February","March","April","May","June","July","August","September","October","November","December"]} /> …

  9. How to Create a Simple Dropdown Component in React

    Aug 20, 2019 · In this tutorial we’ll build a simple dropdown component in React using CodePen. This is the first installment of a multi-part series. By the time we are finished, our dropdown component will be not only extremely flexible and customizable for advanced use cases, but also super easy to use for simple use cases.

  10. React Counter - React.js Examples

    Aug 28, 2016 · React Counter. Code is written in ES6 and App has 5 components. codepen demo. See the Pen React Counter by Danko on CodePen.

  11. Some results have been removed
Refresh