api: update to be more in sync with react
4.0.0