fixed small bugs in example

Hi, please help me to understand here. The `size` prop being a number is completely fine. Its passed as is to be a CSS style property on `width` and `height` which is accepted way of specifying the same in React.