import { Link, Route, Switch, useParams } from "react-router-dom"; const ChannelSingle = (props) => { const { roomId } = useParams(); console.log("props", props.channel); return (
{props.channel.map((el) => (
{el.channelName}
{" "} {el.joinName && el.joinName.map((e) => (
  • {e}

))}
))}
); }; export default ChannelSingle;