As the title says I need to get my current commit count in react. I have read that I should use octokit for this so I set it up like this:
const octokit = new Oc