JSX

<tags> become React.createElement

Use <lowercase /> tags for DOM elements:

<div />
React.createElement('div')

And use <Capitalized /> tags for custom elements:

<Modal />
React.createElement(Modal)

attributes are props

Use "" quotes when your props are strings:

<Modal title="Edit" />
React.createElement(Modal, {
  title: "Edit"
})

And use {} braces when your props are literals or variables:

<Modal
  title={`Edit ${name}`}
  onClose={this.handleClose}
/>
React.createElement(Modal, {
  title: `Edit ${name}`,
  onClose: this.handleClose,
})

{...object} becomes Object.assign

Use it in place of Object.assign

<div
  className='default'
  {...this.props}
/>
React.createElement('div',
  Object.assign(
    { className: 'default' },
    this.props
  )
)