how to use components in react