 &quot;&quot; // populated from the `history.state` property if the user presses the back button
    },
    view: function() {
        return m(&quot;form&quot;, [
            m(&quot;input[placeholder=&#39;Search&#39;]&quot;, {
                oninput: function (e) { state.term = e.target.value },
                value: state.term
            }),
            m(&quot;button&quot;, {onclick: state.search}, &quot;Search&quot;)
        ])
    }
}

m.route(document.body, &quot;/&quot;, {
    &quot;/&quot;: Form