Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Working version of container that returns array of objects
import { connect } from "react-redux";
import Dashboard from "./dashboard";
import { ApplicationState } from "../../store";
const mapStateToProps = (state: ApplicationState) => {
return {
user: state.oidc.user,
sessions: Object.values(state.sessions.sessions),
export default connect(mapStateToProps)(Dashboard);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment