heatherbooker / frenchly

supplementary web app to learn names of countries and nationalities in french
https://frenchly.herokuapp.com/
0 stars 0 forks source link

using links <a href=""> in jsx #12

Closed heatherbooker closed 8 years ago

heatherbooker commented 8 years ago

currently in index.jsx I have declared a destination: var home = 'index.html';

but if I try to reference it later on (line 27): <h1 className='nav-logo'><a href=home>Frenchly</a></h1>

it throws an error.

TO DO: look into this.

dharness commented 8 years ago

@heatherbooker pretty sure it should be <a href={home}> as per: https://facebook.github.io/react/docs/jsx-in-depth.html

heatherbooker commented 8 years ago

rad thanks @dharness