how can i invoke pickVoters() each 5 minutes using react?
import React, { Component } from "react";
class Pick extends Component {
static async getInitialProps(props) {
const { address } = props.query;
const eVoting = new EVoting(address);
const accounts = await web3.eth.getAccounts();
await eVoting.methods.pickVoters().send({
from: accounts[0],
});
return { address };
}