Posts by Matheus Correia • 11 points
3 posts
-
0
votes0
answers1869
viewsQ: Calling a function after rendering a component in React.js
I’m playing an old-fashioned game in React.js that uses the Minimax algorithm to produce the AI moves. This algorithm, from what I’ve seen, is taking between 600ms ~ 1000ms to return a play in the…
-
1
votes1
answer358
viewsA: jquery function $.post or $.get
Okay, from what I understand you want to perform a SELECT in the database, put your records in an array, and then send to the response of an ajax request. How can I return an array that can contain…
jqueryanswered Matheus Correia 11 -
0
votes2
answers265
viewsA: Redirect to browser language based subdomain
You can use javascript for this, see below for example: var lang = navigator.language; alert(lang);…