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

## 基础用法

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

const { _cssPrefix } = config;

class App extends Component {
  render() {
    return (
      <DemoWrapper id="demo-Indicator">
          <FullscreenSwitch
            className={`${_cssPrefix}main-body`}
            target="#root"
            local={{
              default: '大屏模式',
              active: '退出大屏',
            }}
          />
      </DemoWrapper>
    );
  }
}

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