reactjs - anchor tag link reactjs - anchor tag link reactjs reactjs

reactjs - anchor tag link


In this case, you just need to lose the quotes:

<a href={BASE_URL}>

You can play with the JSX compiler at babeljs to get a slightly better idea of what JS it compiles into.


Also, instead of returning an object, you can use the key attribute

return <ul className="nav" key="list"> ... </ul>;