Port example to React