make it work with react