Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit 2bee6eb

Browse files
committed
Code comments
1 parent 16b14a7 commit 2bee6eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export function shim () {
2929
}
3030
}
3131

32+
// Create Provider component for specific context types
3233
export function _makeProvider (contextTypes) {
3334
return class ProvideContext extends Component {
3435
static childContextTypes = contextTypes
@@ -43,6 +44,7 @@ export function _makeProvider (contextTypes) {
4344
}
4445
}
4546

47+
// Server-side render, propagating contexts to children
4648
export function _render (self, ProvideContext) {
4749
const element = (
4850
<ProvideContext context={self.context}>

0 commit comments

Comments
 (0)