Update index.jsx

This PR replaces the deprecated `this.transferpropsto` with the JSX spread attribute: `{...this.props}`. This eliminates the console warning from React.