import React, { useState } from 'react' import { ListGroup } from 'react-bootstrap'; function ClosedList() { const [list, setList] = useState([ { room: '테스트 방1', memnum: 5, admin: '가영' }, { room: '테스트 방2', memnum: 4, admin: '수현' }] ); return (
{list.map((list, index) =>

{list.room}

)}
) } export default ClosedList