# @pomelyu/react-meteor-client

> Full Meteor Client for React

Latest version **1.2.5** (published 2018-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pomelyu/react-meteor-client
pnpm add @pomelyu/react-meteor-client
yarn add @pomelyu/react-meteor-client
bun add @pomelyu/react-meteor-client
```

## 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.2.5 |
| Published | 2018-04-12 |
| First published | 2018-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 64.4 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | pomelyu |
| Keywords | react-component, ddp, meteor, react |

## Links

- npm: https://www.npmjs.com/package/@pomelyu/react-meteor-client
- Repository: https://github.com/pomelyu/react-native-meteor
- Homepage: https://github.com/pomelyu/react-native-meteor#readme
- Issues: https://github.com/pomelyu/react-native-meteor/issues
- npm.io page: https://npm.io/package/@pomelyu/react-meteor-client

## Dependencies (10)

- [ejson](https://npm.io/package/ejson.md) ^2.1.2
- [react](https://npm.io/package/react.md) ^16.2.0
- [trackr](https://npm.io/package/trackr.md) ^2.0.2
- [base-64](https://npm.io/package/base-64.md) ^0.1.0
- [crypto-js](https://npm.io/package/crypto-js.md) ^3.1.6
- [react-dom](https://npm.io/package/react-dom.md) ^16.2.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.5.10
- [underscore](https://npm.io/package/underscore.md) ^1.8.3
- [minimongo-cache](https://npm.io/package/minimongo-cache.md) 0.0.48
- [wolfy87-eventemitter](https://npm.io/package/wolfy87-eventemitter.md) ^4.3.0

## 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.2.5 (latest) — 2018-04-12
- 1.2.4 — 2018-02-26
- 1.2.3 — 2018-02-26
- 1.2.2 — 2018-02-26
- 1.2.1 — 2018-02-26
- 1.2.0 — 2018-02-26

## README

# react-meteor-client
Served as client-side package for meteor subscription and method caller

This repository is forked from [inProgress-team/react-native-meteor](https://github.com/inProgress-team/react-native-meteor), and modified according to [ZevenFang/react-meteor](https://github.com/ZevenFang/react-meteor)

## Usage
```javascript
import Metor, { creatContainer } from 'react-meteor-client';
import App from './App';

const mapMeteorDataToProps = () => {
  Meteor.subscribe('tasks');
  return {
    tasks: Meteor.collection('tasks').find({}) || [],
    incompleteCount: Meteor.collection('tasks').find({ checked: { $ne: true } }).length,
    currentUser: Meteor.user() || null,
  };
};

export default createContainer(mapMeteorDataToProps, App);
```


## Example
```bash
# Build this package
npm install
npm run build

# Publish (After build)
cd dist
npm publish

# Meteor server side (official todos example)
cd example/MeteorApp
meteor npm install
meteor npm start # meteor run at localhost:3333

# React client side
cd example ReactApp
npm install
npm start # react-app run at localhost:3000
```

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