Skip to content

Commit 5aefaa3

Browse files
authored
Update render-and-commit.md
Extending example for better understanding of Initial render.
1 parent c03f029 commit 5aefaa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/learn/render-and-commit.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ There are two reasons for a component to render:
3838

3939
### Initial render {/*initial-render*/}
4040

41+
Intial render is like React is making the customers comfortable when they arrive, by offering them water without them asking for anything.
42+
4143
When your app starts, you need to trigger the initial render. Frameworks and sandboxes sometimes hide this code, but it's done by calling [`createRoot`](/reference/react-dom/client/createRoot) with the target DOM node, and then calling its `render` method with your component:
4244

4345
<Sandpack>

0 commit comments

Comments
 (0)