Render React code

- Select React Code from the block menu.
- Type or paste code into the box.
- Your rendered code will appear in the preview above.
- To vertically resize the preview area, click the resize handle and drag to the desired height
The following display options for React code blocks are available in the property panel:
- Align preview content: Choose whether to align the preview left or center
- Preview height: Adjust the height of the preview.
- Background color: Select a background color for the preview
- Show code: If turned off, the code will be hidden in the published documentation, only the preview will be shown

Edit code

- Click the Edit code button in the property panel.
- You can edit the live code within the block in the React code tab. A preview of the code is shown on the right.
- Click Save.
Edit global dependencies

Include custom or predefined dependencies for your code block.
- Click the Edit code button in the property panel.
- You can edit the dependencies within the block in the Global dependencies tab. A preview of the code is show on the right.
- Click Save.
- Select a template to use if you want to use an existing library as a dependency, or fill in the package.json with your own custom content.
- Click Save. The dependencies will now be used for all of your Render Code blocks.