mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-16 19:58:12 +00:00
24 lines
365 B
Markdown
24 lines
365 B
Markdown
---
|
|
title: 基本使用
|
|
order: 1
|
|
---
|
|
|
|
````jsx
|
|
import React, { PureComponent } from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import SamplePreview from '@ali/lowcode-plugin-sample-preview';
|
|
|
|
class Demo extends PureComponent {
|
|
render() {
|
|
return (
|
|
<div>
|
|
<SamplePreview />
|
|
</div>
|
|
)
|
|
}
|
|
}
|
|
|
|
ReactDOM.render((
|
|
<Demo />
|
|
), mountNode);
|
|
```` |