【发布时间】:2018-02-04 13:51:42
【问题描述】:
我在下面附上了 SCSS 和反应元素的代码
.chatPane {
height: 100%;
overflow: hidden;
.form-control, .form-control:focus, .form-control:active {
border-bottom: 0;
}
}
render() {
const { isLoaded, messages, handleSendMessage, user } = this.props;
const dialogChildren = (
<div className="modalBox">
<h1 className="modalBox-header">Join chat</h1>
<form onSubmit={this.onCreateUser}>
<input className="modalBox-input" placeholder="Type your name" onChange={this.onNameChange} />
<hr className="modalBox-horizontal"/>
<div className="modalFooter">
<Link className="modalBox-link" to="/chat">close</Link>
<button className="modalBox-button" onClick={this.onCreateUser} type="submit">join</button>
</div>
</form>
</div>
);
我需要一些帮助来将此代码转换为 JSS
【问题讨论】:
-
到目前为止你尝试了什么?
-
我们肯定需要更多信息才能为您提供帮助;具体来说,您希望在 JSX 中有哪些类?你想让modalBox-input得到它吗?