1: Mix grated sweet potato, yellow onion, flour, egg, and cayenne together.
2: Heat oil in a heavy-bottomed pan.
3: Add large spoonful of the potato mixture into the hot oil and flatten with a slotted spatula.
4: Fry until golden brown.
5: Serve with sweet or savory toppings like sour cream, chutney, avocados, eggs, or tomatoes.