This question has been answered by a Jeremy Crawford tweet here, but it is my understanding that those rulings are not valid here, so I'm hoping to find an answer in the game rules themselves.
To use the scenario conveyed in the tweet, assume a druid wild shapes into a giant octopus (which has a reach of 15 feet). The giant octopus hits a creature 15 feet away and grapples it. Can the grappled creature attack the giant octopus (which is outside the grappled creature's reach) by using melee attacks on the grappling tentacle, as Crawford claims?