import React from 'react'; import ReactDOM from 'react-dom'; import JqxNotification from '../../../jqwidgets-react/react_jqxnotification.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount () { this.refs.openMessageNotification.on('click', () => { this.refs.messageNotification.open(); }); this.refs.openTimeNotification.on('click', () => { let span = document.getElementById('currentTime'); let date = new Date(); let minutes = date.getMinutes(); if (minutes < 10) { minutes = "0" + minutes; } let seconds = date.getSeconds(); if (seconds < 10) { seconds = "0" + seconds; } span.innerText = date.getHours() + ":" + minutes + ":" + seconds; this.refs.timeNotification.open(); }); } render () { return (