This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Weapon from './Weapon'; | |
import Loading from './Loading'; | |
class Store extends Component { | |
render() { | |
return ( | |
!this.props.data.length ? | |
<Loading></Loading> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import {connect} from "react-redux"; | |
import * as actionCreators from "../actions/index.js" | |
import Store from "../components/Store.js"; | |
class StoreCon extends Component { | |
componentDidMount() { | |
this.props.loadItems(); | |
} |