Open ahireprashant77 opened 2 years ago
import "./styles.css"; import React, { useState } from "react"; import MultiSelect from "react-multiple-select-dropdown-lite"; import "react-multiple-select-dropdown-lite/dist/index.css";
const App = () => { const [value, setvalue] = useState(""); const handleOnchange = (val) => setvalue(val); const options = [ { label: "Option 1", value: "Option 1" }, { label: "Option 2", value: "Option 2" }, { label: "Option 3", value: "Option 3" }, { label: "Option 4", value: "Option 4" } ];
return (
); }; export default App;
Hi @ahireprashant77 , this code does not make any sense. can you please re-produce the problem in https://codesandbox.io ?
import "./styles.css"; import React, { useState } from "react"; import MultiSelect from "react-multiple-select-dropdown-lite"; import "react-multiple-select-dropdown-lite/dist/index.css";
const App = () => { const [value, setvalue] = useState(""); const handleOnchange = (val) => setvalue(val); const options = [ { label: "Option 1", value: "Option 1" }, { label: "Option 2", value: "Option 2" }, { label: "Option 3", value: "Option 3" }, { label: "Option 4", value: "Option 4" } ];
return (
); }; export default App;