challenge-vtex-io-amanda-al.../react/components/placeholder/index.tsx
2023-02-01 20:50:50 -03:00

17 lines
467 B
TypeScript

const Placeholder = () => {
if (window !== undefined) {
if (document !== undefined) {
const placeholderCep = document.querySelector(
".vtex-address-form__postalCode .vtex-input .vtex-input-prefix__group .vtex-address-form-4-x-hideDecorators"
);
console.log(placeholderCep);
} else {
return console.log("não achei document");
}
} else {
return console.log("não achei windows");
}
};
export default Placeholder;