# blazereact

> BlazeReact Use React.js More convenient

Latest version **1.0.13** (published 2020-06-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install blazereact
pnpm add blazereact
yarn add blazereact
bun add blazereact
```

## 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.13 |
| Published | 2020-06-08 |
| First published | 2020-06-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | LenShang |
| Maintainers | lenshang |

## Links

- npm: https://www.npmjs.com/package/blazereact
- Repository: https://github.com/Lenshang/BlazeReact
- Homepage: https://github.com/Lenshang/BlazeReact#readme
- Issues: https://github.com/Lenshang/BlazeReact/issues
- npm.io page: https://npm.io/package/blazereact

## Recent versions

- 1.0.13 (latest) — 2020-06-08
- 1.0.12 — 2020-06-08
- 1.0.11 — 2020-06-07
- 1.0.10 — 2020-06-05
- 1.0.8 — 2020-06-05
- 1.0.7 — 2020-06-05
- 1.0.6 — 2020-06-05
- 1.0.5 — 2020-06-05
- 1.0.4 — 2020-06-05
- 1.0.3 — 2020-06-05
- 1.0.2 — 2020-06-05
- 1.0.1 — 2020-06-05
- 1.0.0 — 2020-06-05

## README

<h1 align="center">BlazeReact</h1>
<div align="center">
    Use React.js More convenient
</div>

## 📦 Install

```bash
npm install blazereact
```

```bash
yarn add blazereact
```

## 🔨 Usage

```jsx
import { useBlaze, BlazeComponent } from 'blazereact';
const BInput = useBlaze("input");
const BSelect = useBlaze("select");

export default class App extends BlazeComponent {
    constructor(props) {
        super(props)
    }

    data() {
        return {
            count: 0,
            formdata: {
                name: "name",
                pass: "pass",
                sex: "",
            },
        }
    }

    click() {
        this.$data.count += 1;
    }

    render() {
        return (
            <div style={{ width: "200px", margin: "0 auto" }}>
                <BInput model={this.model("formdata.name")} placeholder="UserName" />
                <BInput model={this.model("formdata.pass")} placeholder="Password" />
                <BSelect model={this.model("formdata.sex")}>
                    <option value="">unknown</option>
                    <option value="male">male</option>
                    <option value="female">female</option>
                </BSelect>

                <div>Username:{this.$data.formdata.name}</div>
                <div>Password:{this.$data.formdata.pass}</div>
                <div>Sex:{this.$data.formdata.sex}</div>
                <div>you click:{this.$data.count}</div>
                <button onClick={() => { this.click() }}>click</button>
            </div>)
    }
}
```

### TypeScript
`BlazeReact` is written in TypeScript with complete definitions

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