I use the first time. when I try to do this, it gives me this warning and it doesnβt work "Warning: the link is a void element tag and should not have children or use props.dangerouslySetInnerHTML . Check the Loginpanel rendering method."
my code is as follows.
render() { return ( <div > <input type="email" /> <input type="password"/><br/> <link to="Index"> BLOCK </link> </div> ) } }
and my main main.js file is like this
render( <Router history={hashHistory}> <Route path="/" component={Loginpanel} > <Route path="Index" component={App}/> <Route path="Form" component={Form} /> </Route> </Router>, document.getElementById('js-main'));
Thanks in advance.
source share