Was the trade war with China worth it?

Pretty much everyone agrees the trade war caused a lot of pain. For the deal to have any real gain, China must hold to its promises to open its markets and stop stealing intellectual property.