const data = [
{
title: "Hello World",
company: [
"Google",
"Apple",
"Facebook"
]
}
];
class App extends React.Component {
render() {
return (
<ul>
{data[0].company.map((item, index) => (
<input type="text" key={index} value={item}></input>
))}
</ul>
);
}
}
ReactDOM.render(<App />, document.getElementById("app"));
it renders perfectlly but when i am trying to edit its not editing the text. (not editable) and if i add one more input to same array with blank area value it also not working (not updated).