Skip to content

Commit 6395a23

Browse files
committed
chore: code comment
1 parent 71fc766 commit 6395a23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/render.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ function buildRenderResult(
113113
UNSAFE_root: instance,
114114
};
115115

116+
// Add as non-enumerable property, so that it's safe to enumerate
117+
// `render` result, e.g. using destructuring rest syntax.
116118
Object.defineProperty(result, 'container', {
117119
enumerable: false,
118120
get() {

0 commit comments

Comments
 (0)