Socket
Socket
Sign inDemoInstall

notification-system

Package Overview
Dependencies
10
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

26

index.js

@@ -1,13 +0,12 @@

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import NotificationSystem from 'react-notification-system';
import React, { Component } from 'react'
import NotificationSystem from 'react-notification-system'
export default class Notification extends React.Component {
class Notification extends Component {
componentDidMount() {
this._notificationSystem = this.refs.notificationSystem;
this._notificationSystem.addNotification({
message: 'Notification message',
level: 'success'
});
// this._notificationSystem = this.refs.notificationSystem;
// this._notificationSystem.addNotification({
// message: 'Notification message',
// level: 'success'
// });
}

@@ -19,11 +18,8 @@

<p>Test</p>
<NotificationSystem ref="notificationSystem" {...this.props} />
{/*<NotificationSystem ref="notificationSystem" {...this.props} />*/}
</div>
);
)
}
}
ReactDOM.render(
React.createElement(Notification),
document.getElementById('admin_app')
);
export default Notification
{
"name": "notification-system",
"version": "1.0.3",
"version": "1.0.4",
"description": "React Notification System ",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc