I have now made an NPM module that solves the problem of getting
unique IDs for HTML DOM elements. The module is still lacking proper
server-side rendering support, but is otherwise a drop-in solution
to get IDs for DOM elements.
You can install the module via npm: npm install --save-dev react-html-id