replace renderComponent with render because it's being deprecated