Greg Bergé 601bd3442c feat: stable version 1
- Add a new `render` method to use render props pattern
- Fix all issues with SSR

BREAKING CHANGE: loadable-components/babel is now required if you do server side rendering.
BREAKING CHANGE: ErrorComponent now receive `ownProps` instead of `props`.
2018-02-02 15:24:21 +01:00

20 lines
426 B
JavaScript

import React from 'react'
import loadable from 'loadable-components'
const What = loadable(
async () => {
const { default: DeepWord } = await import('./DeepWorld')
const { default: DeepAmazing } = await import('./DeepAmazing')
return () => (
<React.Fragment>
<DeepAmazing /> <DeepWord />
</React.Fragment>
)
},
{
LoadingComponent: () => 'Loading...',
},
)
export default What