uiw
uiw copied to clipboard
fix(deps): update dependency @uiw/react-code-preview to v5
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
@uiw/react-code-preview | ~4.0.5 -> ~5.1.0 |
Release Notes
uiwjs/react-code-preview
v5.1.2
Documentation v5.1.2: https://raw.githack.com/uiwjs/react-code-preview/e4585e8/index.html
Comparing Changes: https://github.com/uiwjs/react-code-preview/compare/v5.1.1...v5.1.2
npm i @​uiw/[email protected]
v5.1.1
Documentation v5.1.1: https://raw.githack.com/uiwjs/react-code-preview/afc1f8c/index.html
Comparing Changes: https://github.com/uiwjs/react-code-preview/compare/v5.1.0...v5.1.1
npm i @​uiw/[email protected]
- 📖 doc: Update README.md
f2cf682
@jaywcjlove - 🐞 fix: Fix theme issue.
a9a4e79
@jaywcjlove
v5.1.0
Documentation v5.1.0: https://raw.githack.com/uiwjs/react-code-preview/886b3c7/index.html
Comparing Changes: https://github.com/uiwjs/react-code-preview/compare/v5.0.0...v5.1.0
npm i @​uiw/[email protected]
- 📖 doc: Update README.md
eb598a3
@jaywcjlove - 🌟 feat: add theme props.
f94269b
@jaywcjlove
v5.0.0
Documentation v5.0.0: https://raw.githack.com/uiwjs/react-code-preview/dfdafc0/index.html
Comparing Changes: https://github.com/uiwjs/react-code-preview/compare/v4.0.6...v5.0.0
npm i @​uiw/[email protected]
- 🌟 feat: Suppot react v18 (#214)
0cdd4ad
@SunLxy - ⛑ test: Fix test case error (react 18) (#215)
fa2c5c8
@SunLxy - 📖 doc: Update README.md (#214).
06b310f
@jaywcjlove
In React 18
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
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 }} />;
}
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.