This is an example of personification. It means that non-human entities get the qualities of human entities. Heart cannot dance literally, but if you use personification, it can.
The story "THE YELLOW WALLPAPER", John, the husband, rented a house for the "rest cure" of the narrator.
They began their stay in the first week of summer. They celebrated 4th of July there. There was no specific date mentioned of when the rent will end. They were still staying at the rented house when the narrator finally became insane.
The words from this passage that best demonstrate logos are B. tar, timber, iron, cordage.
Logos is a way of persuading by using reason. So, the author here states that America doesn't need to go abroad because it already has everything it needs.