1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Another round of removing extra <div> (#3373)

This commit is contained in:
Roman Vanesyan 2017-12-02 22:00:40 +05:00 committed by Tim Neutkens
parent eefab8fb3e
commit 01f05d8cbc
2 changed files with 2 additions and 4 deletions

View file

@ -40,9 +40,7 @@ export default class App extends Component {
}
const containerProps = { Component, props, hash, router, url }
return <div>
<Container {...containerProps} />
</div>
return <Container {...containerProps} />
}
}

View file

@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import htmlescape from 'htmlescape'
import flush from 'styled-jsx/server'
function Fragment ({ children }) {
const Fragment = React.Fragment || function Fragment ({ children }) {
return children
}