Skip to content

Commit

Permalink
fix(react-demo): eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqours committed Mar 29, 2024
1 parent d6a7cc6 commit 5412244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/react-demo/src/component/atom/Counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface ICounterRef {
* The useEffect hook is used to execute a timer that increments the count variable every second.
* The component renders a paragraph element displaying the current value of count.
*/
export const Counter = forwardRef<ICounterRef>((props, ref) => {
export const Counter = forwardRef<ICounterRef>(function Counter(props, ref) {
const initValue = useMemo(() => Math.round(Math.random() * 10), []);
// Local state (React)
const [count, setCount] = useState(initValue);
Expand Down

0 comments on commit 5412244

Please sign in to comment.