Update index.js

transferPropsTo is deprected; use future proof es6 notation