Skip to content

Commit 2cea92e

Browse files
author
Ives van Hoorne
committed
Add render statement
1 parent a234167 commit 2cea92e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/sandpack/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ const App = () => (
129129
</div>
130130
</SandpackProvider>
131131
);
132+
133+
render(<App />, document.getElementById('root'));
132134
```
133135

134136
The above code will render a File Explorer, a working code editor and a preview with browser navigation. We have many more components, like a Jest test view or a console. For more info about `react-sandpack` you can go here: https://github.com/CompuIves/codesandbox-client/tree/master/packages/react-sandpack.

0 commit comments

Comments
 (0)