Package Exports
- easy-dropdown-react
- easy-dropdown-react/dist/bundle.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (easy-dropdown-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
easy-dropdown-react
Installation
use "npm install easy-dropdown-react"Import
const Dropdown = require("veizh-plugin-dropdown")Description
Make Easy Dropdown With React using componentCreateDropdown
/**** Start by importing the module ****/
const Dropdown = require("veizh-plugin-dropdown")
/**** Define a useState hook ****/
let [selectState,setSelectState]=useState('Select a State')
/**** Create an array of strings ****/
currentStatesArray = ["South Carolina","South Dakota","Tennessee"]
return (<Dropdown initial={selectState} arrayOptions={currentStatesArray} mutateur={setSelectState} />)
/**** Use inspector to modify the style with css ****/