---
title: 组件示例
order: 2
---

## 基础用法

```jsx
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { DemoWrapper, QRCode, config } from '@linkdesign/screen';

const { _cssPrefix } = config;


class App extends Component {
  render() {
    return (
      <DemoWrapper>
          <QRCode
            url={location.href}
          />
      </DemoWrapper>
    );
  }
}

ReactDOM.render((
  <App />
), mountNode);
```
