Skip to content

Commit

Permalink
story
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed Sep 8, 2023
1 parent 0e7012a commit f726fe0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sandpack-react/src/components/Console/Console.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,23 @@ export const StaticTemplate: React.FC = () => {
export const NodeTemplate: React.FC = () => {
return <Sandpack options={{ showConsole: true }} template="node" />;
};

export const ReactTemplate: React.FC = () => {
return (
<Sandpack
options={{ showConsole: true }}
files={{
"App.js": `import { useState } from "react"
export default function App() {
const foo = useState("")
console.log(foo)
return (
<>
</>
)
}`,
}}
template="react"
/>
);
};

0 comments on commit f726fe0

Please sign in to comment.