Skip to content

Instantly share code, notes, and snippets.

View AstralJohn's full-sized avatar
🐢

John Dinh AstralJohn

🐢
  • Philadelphia, Pennsylvania
View GitHub Profile
@AstralJohn
AstralJohn / example.component.jsx
Last active March 19, 2020 16:37
React Redux Setup With DevTools
import React from "react";
import { connect } from "react-redux";
// Import your actions from your action's index.js file
// import { action1, action2 } from '../actions'
const ExampleComponent = ({ stateKey1, stateKey2, action1, action2 }) => {
// alternatively, ExampleComponent = (props) => ....
// const {stateKey1, stateKey2, action1, action2} = props;