Grate the sweet potato and put the shreds into a bowl.
Beat the eggs and add them and the flour, onions, and salt and pepper to the shredded potato.
Mix very well together.
Heat a half inch or so of oil in a deep fry pan until it shimmers or a few shreds of the sweet potato dropped in sizzle vigorously.
Put spoons full of the latke mixture on the pan and flatten slightly.
Cook until one side has a deep golden color, then turn over and cook the other side until it, too, is golden; time will vary somewhat depending on how finely you have shredded the vegetable.
Drain and keep hot until you are ready to serve.
Recipe by Taste Buds at https://tastebuds.bdnblogs.com/2017/12/12/whats-for-supper/sweet-potato-latkes-for-all/