cleaner way to wrap react components.