Posts by Danilo Assis Nobre dos Santos • 11 points
1 post
-
1
votes2
answers232
viewsA: How to identify text size (Lenght) with a state
If you want to set a regex to validate Cpf, I made an example using the pattern below: xxx.xxx.xxx-xx class App extends React.Component { state = { cpf: null, validation: "" } onTextChange = (e)…