小案例:博客评论
1)首先添加标签样式,引入bootstrap
RecommendObject.js
import React, { Component, Fragment } from 'react';
export default class RecommendObject extends Component {
constructor(props) {
super(props);
this.state = {}
}
render() {
return (
<div className="container" style={
{ marginTop: 100 }}>
<div className="text-center" style={
{ marginBottom: 30 }}>
<img src="https://www.baidu.com/img/baidu_jgylogo3.gif" alt=""></img>
</div>
<form action="javascript:;"&g