# react-editinplace

> React edit in place component

Latest version **1.0.5** (published 2019-09-19) · MIT license · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2019-09-19 |
| First published | 2015-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Michal Sekula |
| Maintainers | nezriffic |
| Keywords | react, edit, editinplace, inline, input |

## Links

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

## Dependencies (1)

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

## 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.5 (latest) — 2019-09-19
- 1.0.3 — 2015-12-10

## README

# react-editinplace

Simple React component for editing in place.


### Installation
`npm install react-editinplace --save-dev`


### Example

```
var React = require('react'),
    EditInPlace = require('react-editinplace'),

    YourPage = React.createClass({
        getInitialState() {
            return {};

        },


        // validate input text
        _validate(text) {
            if (text.length > 0) {
                return true;
            }

            return false;

        },

        // save text to model etc.
        _onChange(text) {

        },

        render() {

            return <div className="yourpage">
                <EditInPlace
                    text="Some text"
                    editType="dblClick"
                    className="editinplace"
                    maxLength={10}
                    validate={this._validate}
                    activeClassName="active"
                    onChange={this._onChange} />
            </div>;

        }
    });

module.exports = YourPage;
```

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