页脚组件开发

PC端页脚开发

在pc_footer.js中写入代码,填写相应的
import React from 'react';
import {Row,Col} from 'antd';
export default class PCFooter extends React.Component {
render(){
return(
footer>
Row>
Col span={2}>
Col span={20}>
© 2016 ReactNews. All Right Reserved.
</Col
Col span={2}></Col
</Row
</footer
)
}
}

移动端页脚组件开发

在mb_footer.js中写入代码
import React from 'react';
import {Row,Col} from 'antd';
export default class MBFooter extends React.Component {
render(){
return(
footer>
Row>
Col span={2}></Col
Col span={20}>
© 2016 ReactNews. All Right Reserved.
</Col
Col span={2}></Col
</Row
</footer
)
}
}

原文地址:https://www.cnblogs.com/ArielChen/p/7467642.html