Posts by Henrique Viana • 181 points
3 posts
-
2
votes2
answers166
viewsA: What defines the name of Arrow Function in React
In the case of using Arrow Function, you are creating an anonymous function and exporting it. To use it, you can import with any name you prefer. For example: import Qualquer from…
-
1
votes1
answer773
viewsA: Calling function typescript in a javascript function
When you use a callback function (that function you pass in createToken), within a method, you lose the reference of this, which happens to be that of the Mercadopago object. an easy way to solve…
-
2
votes2
answers100
viewsA: Replace character of a string
You can use the str_replace in this case, replacing the hyphen with an empty string, thus: $hash = str_replace("-", "", $result[2]);
phpanswered Henrique Viana 181