A feedback gathering component by displaying a message at the bottom of the page that launch a fully customizable modal window.
Render the component passing as props the following object literal:
const literals = {
footerTitle: 'This is an important notice',
footerParagraf: 'This is more info about the notice',
modalTitle: 'Feedback modal Title',
modalContent: 'Insert here your important extended content inside your modal',
buttonOk: 'OK'
};
ReactDom.render(
<Feedback literals={literals} />,
document.getElementById('main')
);
Clone this repository and run:
$ npm install
To run the lint tasks we have dependencies of:
If that tools are not installed you cant commit. Because the lint pass never will be ok.
$ npm run dev
This command will build your .scss
, .jsx
and .js
files and open a local development environment, with hot reloading. A browser window will be opened as well, showing the entry point of your documents folder for development purposes.
$ npm run test:watch
$ npm test
$ npm run doc
That will publish in a gh-page for docs
folder.
What is a component without a public demo, isn´t ?!