componentDidUpdate()

in src/components/BreakpointContainer.tsx [72:80]


	componentDidUpdate(prevProps: IProps, prevState: IState) {
		// Check if bp changed to support 'onChange' callback
		if (
			typeof this.props.onChange === 'function' &&
			this.state.currentBp !== prevState.currentBp
		) {
			this.props.onChange(this.state.currentBp, this.state.size);
		}
	}