We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 318547c commit 32c64e6Copy full SHA for 32c64e6
components/templates/Hogan/index.js
@@ -3,9 +3,6 @@
3
var React = require('react');
4
5
var hogan = require('hogan.js');
6
-var memoize = require('lodash/function/memoize');
7
-
8
-var memoHogan = memoize(hogan.compile.bind(hogan));
9
10
var HoganResult = React.createClass({
11
propTypes: {
@@ -14,12 +11,12 @@ var HoganResult = React.createClass({
14
},
15
12
componentWillMount: function() {
16
13
this.setState({
17
- template: memoHogan(this.props.template)
+ template: hogan.compile(this.props.template)
18
});
19
20
render: function() {
21
var content = this.state.template.render(this.props.data);
22
- return <div dangerouslySetInnerHTML={{__html: content}} />;
+ return <div className="hit" dangerouslySetInnerHTML={{__html: content}} />;
23
}
24
25
0 commit comments