Skip to content

Releases

v5.2.2

Choose a tag to compare

@github-actions github-actions released this 28 Mar 14:18

v5.2.1

Choose a tag to compare

@github-actions github-actions released this 25 Mar 07:55

Documentation v5.2.1: https://raw.githack.com/uiwjs/react-code-preview/3af8c46/index.html
Comparing Changes: v5.2.0...v5.2.1

v5.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Mar 07:01

Documentation v5.2.0: https://raw.githack.com/uiwjs/react-code-preview/68d233b/index.html
Comparing Changes: v5.1.2...v5.2.0

v5.1.2

Choose a tag to compare

@github-actions github-actions released this 23 Apr 09:16

v5.1.1

Choose a tag to compare

@github-actions github-actions released this 22 Apr 15:40

v5.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Apr 15:27

v5.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Apr 13:37

Documentation v5.0.0: https://raw.githack.com/uiwjs/react-code-preview/dfdafc0/index.html
Comparing Changes: v4.0.6...v5.0.0

In React 18

Open in CodeSandbox

import Button from '@uiw/react-button';
import CodePreview from '@uiw/react-code-preview';

const code = `import Button from '@uiw/react-button';
import ReactDOMClient from 'react-dom/client';

ReactDOM.render(
  <div>
    <Button type="primary">主要按钮</Button>
    <Button type="success">成功按钮</Button>
  </div>,
  _mount_
);`;

export default function App() {
  return <CodePreview code={code} dependencies={{ Button }} />;
}

In React 17

Open in CodeSandbox

import Button from '@uiw/react-button';
import CodePreview from '@uiw/react-code-preview';

const code = `import Button from '@uiw/react-button';
import ReactDOM from 'react-dom';

ReactDOM.render(
  <div>
    <Button type="primary">主要按钮</Button>
    <Button type="success">成功按钮</Button>
  </div>,
  _mount_
);`;

export default function App() {
  return <CodePreview code={code} dependencies={{ Button }} />;
}

v4.0.6

Choose a tag to compare

@github-actions github-actions released this 06 Mar 13:18

Documentation v4.0.6: https://raw.githack.com/uiwjs/react-code-preview/c006577/index.html
Comparing Changes: v4.0.5...v4.0.6

v4.0.5

Choose a tag to compare

@github-actions github-actions released this 18 Jan 05:14

v4.0.4...v4.0.5

v4.0.4

Choose a tag to compare

@github-actions github-actions released this 18 Jan 05:02

v4.0.3...v4.0.4