did things the react way!