시맨틱/리 액트/익스프레스를 처음 사용했습니다. Semantic in React에 대한 스타일 시트를 어떻게 포함합니까? 시맨틱 CSS/JavaScript 파일에 직접 링크되는 HTML 파일이 필요합니까? 지금, 나는 어떤 html 파일도 사용하지 않고있다.React와 Express에서 시맨틱 UI를 어떻게 사용합니까?
내 메인 페이지, dashboard.jsx
:
var React = require('react');
var Layout = require('./layout');
class Dashboard extends React.Component {
render() {
return (
<Layout title={this.props.title}>
<h1>{this.props.title}</h1>
<div class="ui three item menu">
<a class="active item">Editorials</a>
<a class="item">Reviews</a>
<a class="item">Upcoming Events</a>
</div>
</Layout>
);
}
}
Dashboard.propTypes = {
title: React.PropTypes.string
};
module.exports = Dashboard;