if i want to execute that no error is happen but in console it gives error like Invariant failed: A Droppable requires a droppableId prop and provided.innerRef has not been provided with a HTMLElement ,how can I run that one
import React, { useState } from "react";
import {DragDropContext,Droppable,Draggable} from "react-beautiful-dnd"
export default function DropDown() {
const data=[
{
name:"Up",
id: "1"
},
{
name:"Down",
id:"2"
}
];
const[list,setList]=useState(data);
const onEnd=(result)=>{
console.log(result);
}
return (
<>
<DragDropContext onDragEnd={onEnd}>
<Droppable droppableId="111">
{(provided,snapshot)=>{
<div ref={provided.innerRef}>
{list.map((item,index)=>{
<Draggable draggableId={item.id} key={item.id} index={index}>
{(provided,snapshot)=>{
<div ref={provided.innerRef}
{...provided.draggableProps}
{...provided.dragHandleProps}
>
<div>{item.name}</div>
</div>
}}
</Draggable>
})}
{provided.placeholder}
</div>
}}
</Droppable>
</DragDropContext>
</>
);
}