The moment the child started hamming it up, the whole family laughed.
Tips
register
Colloquial, especially common in Taiwan Mandarin and entertainment writing. 耍 (shuǎ) = to play / mess around; 宝 (bǎo) here means 'treasure / cute thing' — together: 'to play the cute fool'.