React.js fundamental

<select value={this.state.value} onChange={this.handleChange}>
{somearray.map(element => <option value={element.value}>
{element.text}
</option>)}
</select>

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Avoiding Race Conditions when Fetching Data with React Hooks

Pros and Cons of Node.Js Trends That Will Dominate in 2021

Why Is It Worth to Build Native Apps with React Native?

What is React Native and how to get started creating applications.

How to leverage LocalStorage in Cypress testing

How to Integrate Stripe Payment APIs Using Node.JS

How to Learn a New Programming Language at an Accelerated Pace

How to make TypeScript infer the number and types of parameters in a function

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Fatiha Zannat

Fatiha Zannat

More from Medium

1. Why we need React.JS:

Learning Redux, What about I know about Redux (React)

How to pass data between React Components

Using Axios in ReactJS