"Magic erasers" are melamine foam sponges, and they work like a fine grit abrasive to remove a thin layer of the surface being scrubbed.
They can be effective, but may not be suitable for every situation. "Test in an inconspicuous spot" as they say, if you're willing to take the risk, but keep how they work in mind.