Use refs instead of links