Check out example codes for "where do I vote #election2020". It will help you in understanding the concepts better.
Code Example 1
Code Example 2
another grepper answer, another guy saying to vote. GO VOTE
Code Example 3
const vote = require('polling-place'); vote(); // Yay!
Code Example 4
Vote because yes
Code Example 5
<-- Voting is cool! >
Code Example 6
Learn ReactJs, React Native from akashmittal.com