Skip to content

Commit

Permalink
feat: 할 일들을 구분해주는 라디오 그룹 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gykoh42 committed Apr 8, 2024
1 parent 033e772 commit 39e4b8b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/Radio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const RadioGroup = ({ changeRadioState }) => {
return (
<>
<input
type="radio"
name="radio"
defaultChecked
onChange={() => changeRadioState("All")}
/>
<label>All</label>
<input
type="radio"
name="radio"
onChange={() => changeRadioState("In Progress")}
/>
<label>In Progress</label>
<input
type="radio"
name="radio"
onChange={() => changeRadioState("Completed")}
/>
<label>Completed</label>
</>
);
};

export default RadioGroup;

0 comments on commit 39e4b8b

Please sign in to comment.