-
Notifications
You must be signed in to change notification settings - Fork 13
/
Html.jsx
45 lines (40 loc) · 1.13 KB
/
Html.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
var React = require('react');
var Fluxex = require('fluxex');
var Results = require('./Results.jsx');
var SearchBox = require('./SearchBox.jsx');
var Html = React.createClass({
mixins: [
Fluxex.mixin,
require('fluxex/extra/pjax')
],
getInitialState: function () {
return {};
},
handleclick: function (E) {
this._getContext().redirect('https://yahoo.com/');
},
render: function () {
return (
<html>
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<Fluxex.Title />
</head>
<body onClick={this.handleClickLink}>
<SearchBox />
Sample Search:
<ul>
<li><a href="/search?q=apple">Apple</a></li>
<li><a href="/search?q=banana">Banana</a></li>
<li><a href="/search?q=orange">Orange</a></li>
</ul>
<div onClick={this.handleclick}>CLICK GOTO YAHOO.COM</div>
<Results />
<Fluxex.InitScript />
</body>
</html>
);
}
});
module.exports = Html;