Copy over needed utils from React