diff --git a/docs/getting-started/authoring.mdx b/docs/getting-started/authoring.mdx index 16ce2877..34dce7c1 100644 --- a/docs/getting-started/authoring.mdx +++ b/docs/getting-started/authoring.mdx @@ -61,60 +61,29 @@ Responsive grid. #### `Sandpack` -See https://sandpack.codesandbox.io/docs/getting-started/usage. +See [Sandpack docs](https://sandpack.codesandbox.io/docs/getting-started/usage). ```tsx (meshRef.current.rotation.x += delta)) - - return ( - setActive(!active)} - onPointerOver={(event) => setHover(true)} - onPointerOut={(event) => setHover(false)} - > - - - - ) -}`, - '/App.js': `import {Canvas} from '@react-three/fiber' -import {Box} from './Box' + '/styles.css': `html,body,#root {height:100%;margin:unset;}`, + '/App.tsx': `import { Canvas } from '@react-three/fiber' +import { Cloud, CameraControls } from '@react-three/drei' export default function App() { return ( - - - - - - + + + + ) }`, @@ -126,56 +95,25 @@ export default function App() { Result (meshRef.current.rotation.x += delta)) - - return ( - setActive(!active)} - onPointerOver={(event) => setHover(true)} - onPointerOut={(event) => setHover(false)} - > - - - - ) -}`, - '/App.js': `import {Canvas} from '@react-three/fiber' -import {Box} from './Box' + '/styles.css': `html,body,#root {height:100%;margin:unset;}`, + '/App.tsx': `import { Canvas } from '@react-three/fiber' +import { Cloud, CameraControls } from '@react-three/drei' export default function App() { return ( - - - - - - + + + + ) }`,