UNPKG

firestudio

Version:

CLI for developing apps with NextJS and Firebase

18 lines (13 loc) 238 B
import { Container } from '@store'; // class Toast extends Container { state = [] add = (toast) => { const currentState = this.state; this.setState([ ...currentState, toast, ]); } } export default Toast;