challenge-vtex-io-gabriel-g.../react/placeholder.tsx

15 lines
327 B
TypeScript
Raw Normal View History

import React, { useEffect } from "react";
const placeholder = () => {
useEffect(() => {
setTimeout(() => {
const exemplo = document.querySelector(".vtex-address-form-4-x-input");
exemplo?.setAttribute("placeholder", "Digite seu CEP");
}, 1000);
}, []);
return <></>;
};
export default placeholder;