fix example bugs

Old one had some bugs:
- 'x' on modal wasn't showing.
- trying to close modal in unmount, but modal had a closing animation.

Oh and, changing `class` into `className` like suggested in docs.