# react-respond

> A simple component for placing layout elements of webpage, based on react!

Latest version **1.0.4** (published 2016-10-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-respond
pnpm add react-respond
yarn add react-respond
bun add react-respond
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2016-10-17 |
| First published | 2016-10-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zhao xin ke |
| Maintainers | zhaoxinke |
| Keywords | react, placement, respond, switch, components |

## Links

- npm: https://www.npmjs.com/package/react-respond
- Repository: https://github.com/felixzxk/react-respond
- Homepage: https://github.com/felixzxk/react-respond#readme
- Issues: https://github.com/felixzxk/react-respond/issues
- npm.io page: https://npm.io/package/react-respond

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^15.3.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2016-10-17
- 1.0.3 — 2016-10-17
- 1.0.1 — 2016-10-13
- 1.0.0 — 2016-10-13

## README

# react-respond
## 这是啥？
这是一个基于react的布局组件
## 为啥？
这类组件应该是比较多的，而且很多成熟框架都有此类功能，做这玩意儿不是浪费时间吗？
对，是在浪费时间，我再来个粗糙的轮子就是以为了练手！
不过现在这东西还很渣！
## 特点
响应式布局，自定义响应式布局的规则，自动显示或隐藏侧边栏，详见 [wiki](https://github.com/felixzxk/react-respond/wiki)
## 安装
    npm install --save react-respond
## 使用
    var ReactRespond = require('react-respond'),    //主体容器
     RRCell = ReactRespond.RRCell,                //基础子元素
     RRFix = ReactRespond.RRFix,                  //浮动fix定位的子元素
     
    <ReactRespond
        {/* ...someProps goes here */}
    >
        <RRCell
            {/* ...someProps goes here */}
        >
            {/* your content gose here */}
        </RRCell>
        {/* ... any other RRCells ... */}
        <RRCell
            {/* ...someProps goes here */}
        >
            {/* your content gose here */}
        </RRCell>
        <RRFix
            type = 'top'                        //fix的元素需要存在type属性，定义它在页面上的位置类型，默认是“top”
            {/* ...someProps goes here */}
        >
            {/* your content gose here */}
        </RRFix>
    </ReactRespond>
在ReactRespond只允许存在RRCell、RRFix两类元素，其他元素将被移除；
RRFix同方向的元最多只能存在1个，多余的将被移除。

---
_Source: https://npm.io/package/react-respond · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
