File size: 229 Bytes
d757506
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React, { memo } from 'react'

interface Props {
  onClick: () => void
}

export default memo(function child(props: Props) {
  console.log('child')
  return (
    <div onClick={props.onClick}>
      child
    </div>
  )
})