World leaders, and people in Gaza and Israel have welcomed the tentative deal between Israel and Hamas.