react-clickable-div
v1.0.0
Published
Painless adding accessibility to you div elements
Downloads
108
Readme
react-clickable-div
Painless adding accessibility to you div elements
Install
npm install --save react-clickable-div
Usage
import React, { Component } from 'react'
import ClickableDiv from 'react-clickable-div'
import 'react-clickable-div/dist/index.css'
class Example extends Component {
render() {
return (
<ClickableDiv className="my-awesome-div" onClick={() => { console.log('CLICKED'); }}>
I am a clickable div!
</ClickableDiv>
)
}
}
License
MIT © storm2513