React JS Multiple Select Dropdown Example

June 29, 2020 | Category : React

Here, i will show you react multi select dropdown component. you can understand a concept of how to use multi select dropdown in react js. i would like to share with you multi select dropdown in react js example. In this article, we will implement a react multiselect dropdown example. Let's see bellow example react multiple select dropdown.

Sometime we need to add multiselect dropdown list for use choice like we can give option to choose for fruits that like user and he will select multiple from list. so if you need to add multiple select dropdown in react js then i will show how to can use multiple select dropdown in react.

In this example, we will take one categories array with "PHP", "Laravel" etc. and simply using map loop display dynamic multiple option. When user will select any option then we will store that info to "checkedItems" variable. after when you submit form then you can get selected option values.

So, let's see bellow preview and example code:

Example Code:

import React, { Component } from 'react';

import { render } from 'react-dom';

class App extends Component {

constructor() {


this.state = {

categories: [

{id: 1, value: "PHP"},

{id: 2, value: "Laravel"},

{id: 3, value: "Angular"},

{id: 4, value: "React"}


selCategories: 'php'


this.handleChange = this.handleChange.bind(this);

this.handleSubmit = this.handleSubmit.bind(this);


handleChange(event) {

const selected=[];

let selectedOption=(;

for (let i = 0; i < selectedOption.length; i++){



this.setState({selCategories: selected});


handleSubmit(event) {




render() {

return (


<h1>React Select Dropdown onChange Example -</h1>

<form onSubmit={this.handleSubmit}>

<strong>Select Category:</strong>

<select multiple onChange={this.handleChange.bind(this)}>

{ => (

<option value={}>{item.value}</option>




<input type="submit" value="Submit" />






render(, document.getElementById('root'));

I hope it can help you...