Implements two-way bindings on the react example.