To create a container, I only need to add my AppState typings to the mapStateToProps
parameter:
const mapStateToProps = (state: State) => ({
messages: state.messaging.messages
});
const mapDispatchToProps = (dispatch) => ({
dismissUIMessage: (num) => dispatch(actions.dismissUIMessage(num))
});