Update example to use the new API

Also use JSX.