JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="Cpf">
<input type="text" id="CpfT">
<input type="checkbox" id="RG">
<input type="text" id="RGT">
JavaScript
document.getElementById('Cpf').onchange = function() {
document.getElementById('CpfT').disabled = !this.checked;
};
document.getElementById('RG').onchange = function() {
document.getElementById('RGT').disabled = !this.checked;
};