[React] 조건부 랜더링 버튼 색상 변경
import React, { useState } from 'react'; import Comments from './Comments'; import styled from 'styled-components'; const StBtn = styled.button` background-color: ${(props) => props.color}; color: white; border-radius: 20px; border: none; padding: 10px 20px; margin: 10px; font-weight: 600; `; function CommentsLayout({ comments, setComments, member }) { const memberList = ['하니', '혜인', '다니엘', '해린'..