react-redux-boilerplate-scripts
Version:
react-boilerplate-app-scripts
40 lines (35 loc) • 875 B
JSX
import React from 'react'
import { PropTypes } from 'prop-types'
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'
//BreadCrumb must before redux @connect,it's different from layout view
.create([
{
label: 'About',
link: '/about',
},
])
((state)=>{
return {
};
})
("About")
class AboutView extends React.Component {
constructor(props){
super(props);
}
render() {
return (
<div>
<h1>{ this.t('About') }</h1>
{ this.t('To get started, edit src/view/about/index.jsx.') }
<br/>
{ this.t('When you save the file,it will be updated to the browser automatically.') }
</div>
)
}
}
export default AboutView;