Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Component = require("react").Component;
let mitt = require("mitt");
if (mitt.default) {
mitt = mitt.default;
}
module.exports = function send(name = "Send") {
let emitter = mitt();
class Input extends Component {
static displayName = `${name}.Input`;
componentDidMount() {
emitter.emit("update", this.props.children);
}
componentDidUpdate() {
emitter.emit("update", this.props.children);
}
const Component = require("react").Component;
let mitt = require("mitt");
if (mitt.default) {
mitt = mitt.default;
}
module.exports = function send(name = "Send") {
let emitter = mitt();
class Input extends Component {
static displayName = `${name}.Input`;
componentDidMount() {
emitter.emit("update", this.props.children);
}
componentDidUpdate() {
emitter.emit("update", this.props.children);
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const mitt = require("mitt");
exports.default = new (mitt.default || mitt)();