challenge-vtex-io-gabriel-f.../react/components/Placeholder/Placeholder.tsx

10 lines
253 B
TypeScript
Raw Normal View History

2023-02-01 22:12:53 +00:00
const Placeholder = () => {
if (typeof document !== 'undefined') {
const InputCep = document.querySelector('.vtex-address-form-4-x-input')
InputCep?.setAttribute('placeholder', 'Digite seu CEP')
}
return null
}
export default Placeholder