Skip to content

Commit

Permalink
docs: remove react development mode notice
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxuum committed Jul 19, 2024
1 parent 337f041 commit 5b79c6e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/src/content/docs/guides/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ Centurion needs to be started **once** on the client and server.

<Tabs>
<TabItem label="Client">
<Aside type="caution" title="Usage with React">
When using React in development mode (`_G.__DEV__` set to true),
you must set `_G.__DEV__` to true **before importing** Centurion.
</Aside>

<Code lang="ts" code={`
import { CenturionClient } from "@rbxts/centurion";
import { CenturionUI } from "@rbxts/centurion-ui";
Expand Down Expand Up @@ -113,4 +108,5 @@ CenturionServer.start((registry) => {
// call the register method:
registry.register();
}).catch((err) => warn("Centurion could not be started:", tostring(err)));
`} />
`} />import { Aside, Card, Code, TabItem, Tabs } from '@astrojs/starlight/components';
import Install from '@fragments/install.mdx';

0 comments on commit 5b79c6e

Please sign in to comment.