File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 66
77</div >
88
9- # Installation
9+ ## Installation
1010
1111``` shell
1212yarn add react-input-handler
1818npm install react-inpu-handler --save
1919```
2020
21- # Usage
21+ ## Usage
2222
2323Two things needs to be done to use ** react-input-handler** :
2424
2525 1 . Create a bound function (see 2nd line in constructor).
2626 2 . Attach the bound function to ` onChange ` events.
2727
28- ## Example
28+ ### Example
2929
3030``` js
3131import React from ' react'
@@ -62,25 +62,25 @@ class Form extends React.Component {
6262}
6363` ` `
6464
65- # Documentation
65+ ## Documentation
6666
6767**React-input-handler** a single function which accept an event as unique argument.
6868
6969The objective is simple: handle input changes and persist them into the component's state.
7070
71- # Development
71+ ## Development
7272
7373 1. Clone and fork this repo.
7474 2. Install dependencies running: ` yarn` or ` npm install` .
7575 3. [Run tests](#test).
7676 4. Prepare a pull request.
7777
78- ## Test
78+ ### Test
7979
8080 - ` yarn test` - to run all tests.
8181 - ` yarn test -- -- watch` to run all tests in watch mode.
8282
83- ## Publish
83+ ### Publish
8484
8585 1. Bump version: ` npm version x .x .x - m ' Version %s.' ` .
8686 2. Publish to NPM registry: ` npm publish` .
You can’t perform that action at this time.
0 commit comments