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