Income Tax

Hi, if i work in New Jersey, but live in New Hampshire where there is no earned income tax, would I still have to pay state taxes? I own property in both states, but legally live in New Hampshire. thank you!