Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagiv Ben Giat authored and Sagiv Ben Giat committed Oct 14, 2018
0 parents commit ef411d8
Show file tree
Hide file tree
Showing 20 changed files with 38,224 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
["env", {
"modules": false
}],
"stage-0",
"react"
]
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
23 changes: 23 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parser": "babel-eslint",
"extends": [
"standard",
"standard-react"
],
"env": {
"es6": true
},
"plugins": [
"react"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
// don't force es6 functions to include space before paren
"space-before-function-paren": 0,

// allow specifying true explicitly for boolean props
"react/jsx-boolean-value": 0
}
}
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules

# builds
build
dist

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# react-trap

> Detect dom events inside or outside an element
[![NPM](https://img.shields.io/npm/v/react-trap.svg)](https://www.npmjs.com/package/react-trap) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save react-trap
```

## Usage

```jsx
import React, { Component } from 'react'

import MyComponent from 'react-trap'

class Example extends Component {
render () {
return (
<MyComponent />
)
}
}
```

## License

MIT © [sag1v](https://github.com/sag1v)
2,164 changes: 2,164 additions & 0 deletions example/README.md

Large diffs are not rendered by default.

Loading

0 comments on commit ef411d8

Please sign in to comment.