UNPKG

firestudio

Version:

CLI for developing apps with NextJS and Firebase

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