UNPKG

react-redux-boilerplate-scripts

Version:

react-boilerplate-app-scripts

33 lines (28 loc) 721 B
import React from 'react' import { connect } from 'react-redux' import Locale from 'r2-js/libs/decorator/Locale' import PageTitle from 'r2-js/libs/decorator/PageTitle' import BreadCrumb from 'r2-js/libs/decorator/BreadCrumb' @connect((state)=>{ return { }; }) @PageTitle("Home") @Locale class IndexView extends React.Component { constructor(props){ super(props); } render() { //console.debug(this.props) return ( <div> <h1>{ this.t('Home') }</h1> { this.t('To get started, edit src/view/index/index.jsx.') } <br/> { this.t('When you save the file,it will be updated to the browser automatically.') } </div> ) } } export default IndexView;