I can see @rescript/react version 0.13.1 fixes the “pipe last” problem.
When using rescript 12, the dependency should be upgraded from 0.13.0 to 0.13.1 at https://github.com/rescript-lang/create-rescript-app/blob/master/templates/rescript-template-nextjs/package.json#L7 and create-rescript-app/templates/rescript-template-vite/package.json at master · rescript-lang/create-rescript-app · GitHub shouldn’t it ?