JSFiddle - React, Tailwind, and code Playground

HTML

<ruby>
    漢 <rp>(</rp><rt>かん</rt><rp>)</rp>
    字 <rp>(</rp><rt>じ</rt><rp>)</rp>
</ruby>