Skip to content

Commit

Permalink
removed duplicatd type assignement
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Feb 28, 2025
1 parent 357a7e8 commit b72e0ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type CounterProps = {
};

function Counter(props: CounterProps) {
const { render = <button type="button" />, className, ...otherProps } = props;
const { render = <button />, className, ...otherProps } = props;
const [count, setCount] = React.useState(0);
const odd = count % 2 === 1;
const state = React.useMemo(() => ({ odd }), [odd]);
Expand Down

0 comments on commit b72e0ad

Please sign in to comment.