If you need more features such as on-change event, consider using https://github.com/mattermost/react-native-emm. I've created this library because react-native-emm ...
This could instead be an issue with the React docs rather than with Next, but the CodeSandbox example in the docs (you can access it directly via the "fork" link) indeed appears to be a server ...