pretty sure react should be a dep here