JSFiddle - React, Tailwind, and code Playground

HTML

<label id="cargo_weight">
<input type="checkbox" name="permission[modify][]" value="customer/customer">customer/customer</label>

JavaScript

var lab = document.getElementById('cargo_weight')
var el = lab.getElementsByTagName('input')[0];
if(el.getAttribute('value') == "customer/customer") {
	lab.style.display = 'none';
}