tree-sitter is really helpful in difftastic, but we still have to do some post-processing. We need to know which tokens are OK to move around (e.g. variables) and which aren't (delimiters).
In the second run, I've fixed delimiters in JSX, so you don't get mismatched > on h1.