JSFiddle - React, Tailwind, and code Playground

by Curry

HTML

<input type="checkbox"><span></span>

CSS

input + span:before {
    content:'Not Checked';
}
input:checked + span:before {
    content:'Checked!';
}