Spaces:
Runtime error
Runtime error
File size: 306 Bytes
d757506 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import { useState,memo } from 'react'
interface props {
count: number
onClick: ()=> void
}
const helloWord = (props:props) =>{
console.log('helloWord')
return (
<div className="helloWord" onClick={props.onClick}>
HelloWord:{props.count}
</div>
)
}
export default memo(helloWord) |