Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
01f05d8c
Commit
01f05d8c
authored
Dec 02, 2017
by
Roman Vanesyan
Committed by
Tim Neutkens
Dec 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another round of removing extra <div> (#3373)
parent
eefab8fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app.js
lib/app.js
+1
-3
document.js
server/document.js
+1
-1
No files found.
lib/app.js
View file @
01f05d8c
...
@@ -40,9 +40,7 @@ export default class App extends Component {
...
@@ -40,9 +40,7 @@ export default class App extends Component {
}
}
const
containerProps
=
{
Component
,
props
,
hash
,
router
,
url
}
const
containerProps
=
{
Component
,
props
,
hash
,
router
,
url
}
return
<
div
>
return
<
Container
{...
containerProps
}
/
>
<
Container
{...
containerProps
}
/
>
<
/div
>
}
}
}
}
...
...
server/document.js
View file @
01f05d8c
...
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
...
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import
htmlescape
from
'htmlescape'
import
htmlescape
from
'htmlescape'
import
flush
from
'styled-jsx/server'
import
flush
from
'styled-jsx/server'
function
Fragment
({
children
})
{
const
Fragment
=
React
.
Fragment
||
function
Fragment
({
children
})
{
return
children
return
children
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment