# ls-react

> React helpers for better LiveScript development

Latest version **1.1.4** (published 2019-07-02) · ISC license · 0 weekly downloads

## Install

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

## 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.1.4 |
| Published | 2019-07-02 |
| First published | 2019-06-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | S. P. O. Clayton |
| Maintainers | seanclayton |
| Keywords | livescript, react, functional programming |

## Links

- npm: https://www.npmjs.com/package/ls-react
- Repository: https://github.com/sean-clayton/ls-react
- npm.io page: https://npm.io/package/ls-react

## Dependencies (1)

- [prelude-ls](https://npm.io/package/prelude-ls.md) ^1.1.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.1.4 (latest) — 2019-07-02
- 1.1.3 — 2019-07-02
- 1.1.2 — 2019-06-29
- 1.1.1 — 2019-06-29
- 1.0.1 — 2019-06-29
- 1.1.0 — 2019-06-29
- 1.0.0 — 2019-06-29

## README

# ls-react

A little library to make writing React code in LiveScript a little nicer.

### Usage

```ls
require! {
  react: {use-state}
  'react-dom': ReactDOM
  'ls-react': {h, div, button, h1, p}
}

App = ({ title }) ->
  [count, set-count] = use-state 0
  increment = -> set-count count + 1

  div {},
    h1 class-name: 'heading', title
    p {} "Count is: #{count}"
    b on-click: increment, "+"

ReactDOM.render(
  h App, title: 'Yo!'
  document.getElementById "root"
)
```

For more usage examples, check out the `examples` directory.

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