Query and mutate react elements at render time