由于UIKit 3.0处于测试阶段,我想使用稳定版UIKIT2.27.4与React和Meteor,但它没有检测到它。我按如下方式导入了它:
在meteor client / main.js中如下
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import '../imports/jquery-3.2.1.min.js';
import '../imports/uikit/css/uikit.min.css';
import '../imports/uikit/js/uikit.min.js';
class App extends Component {
render() {
return (
<div>
<nav className="uk-navbar">
<a href="" className="uk-navbar-brand">Kareri</a>
<ul className="uk-navbar-nav">
<li>Home </li>
<li>Trekking</li>
<li>Hotels</li>
<li>Contact</li>
</ul>
<a href="" className="uk-navbar-toggle"></a>
</nav>
</div>
);
}
};
Meteor.startup(() => {
ReactDOM.render(<App />, document.querySelector('.container'));
});
如何让uikit与REACT和METEOR合作?