我有设置复制:主 - 从.从服务器作为热备用,这意味着我们可以运行只读的sql查询.我怎么能看到奴隶服务器正在提供只读查询?
有一个经典的React组件:
var CommentForm = React.createClass({
render: function() {
return (
<form className="commentForm">
<input type="text" placeholder="Your name" />
<input type="text" placeholder="Say something..." />
<input type="submit" value="Post" />
</form>
);
}
});
Run Code Online (Sandbox Code Playgroud)
是否可以使用Slim而不是HTML?像这样的东西:
var CommentForm = React.createClass({
render: function() {
return (
form.commentForm
input type="text" placeholder="Your name"
input type="text" placeholder="Say something..."
input type="submit" value="Post"
);
}
});
Run Code Online (Sandbox Code Playgroud)