React package to compare images in before/after view
npm install before-after-reactBeforeAfter is a lightweight Javascript library to compare images in before/after view.
BeforeAfter is available as the before-after-react package on npm.
```
npm install before-after-react --save

Import the compnent from npm
and just add it to your JSX even without any props the component still work.
the component have default images.
`javascript
import React from 'react';
import BeforeAfterReact from 'before-after-react'
function App() {
return (
);
}
export default App;
`firstImgSrc
##Props
The component can get:
* - {String} - image srcsecondImgSrc
* - {String} -image srccontainerClass
* - {String} - add your own class to the containercursor
* - {String} - a valid css cursor valuevertical
* - {Boolean} - default is falseseperatorImg
* - {String} - image src
There is no callback function available with BeforeAfterReact.
`javascript
import React from 'react';
import BeforeAfterReact from 'before-after-react'
function App() {
return (
secondImgSrc="https://upload.wikimedia.org/wikipedia/commons/2/21/Gallet_clamshell_600x600_7.jpg"
cursor="pointer"
containerClass="add-my-class"
/>
);
}
export default App;
});
``