There is a similar form called "cakewalk" that started around 1877 and reached the heights of its popularity in the 1890s but gradually fell out in the first decade of the 20th century. The best I can tell, cakewalk differed from ragtime in that the beats are all aligned at the start of each bar with minimal syncopation working its way in until the next bar when everything resets, as it were. Ragtime syncopation continues throughout a piece and frequently straddles across bars. Others say that cakewalk and ragtime are not really related and they may be right but today, we tend to lump them together. Cakewalk was also the name of a dance and the music may have been written for it. The dance was invented by black slaves. They would don their Sunday finery (virtually always hand-me-downs from the master's family) and couples would strut ostentatiously in the barnyard as a dance competition. The best dancing couple would win a huge coconut topping cake. It was so huge, though, that everybody would help eat it. Whites watched these dances and, for some reason, thought it was an authentic African dance (the slaves were actually poking fun at the way white people danced) and they started to do it too. But the late 1800s, it had become a dance craze that also accompanied ragtime and then passed into early jazz. My favorite cakewalk piece is by Sadie Koninsky from about 1897 when she was only 17--"Eli Green's Cakewalk":
https://www.youtube.com/watch?v=L758otevsh8&ab_channel=RagtimeDorianHenryEli Green's Cakewalk
https://www.youtube.com/watch?v=LqpINmqxlsc&ab_channel=JiveSwing.ComCakewalk dancing. Later dances such as the Lindy Hop evolved from cakewalk.
https://www.youtube.com/watch?v=yD3Ybme_cdc&ab_channel=adamgswansonMovie scene with cakewalk dancing. The musical accompaniment is "At a Georgia Camp Meeting."
https://www.youtube.com/watch?v=lLR2ZI0evgs&ab_channel=RagtimeDorianHenryAt a Georgia Camp Meeting by Kerry Mills. A very famous piece in the 1890s. Mills was one of three of the best-known cakewalk composers--ironically, all were white: Mills, Abe Holzmann and J. Bodewalt Lampe. Mills was from Ann Arbor, Michigan and spent a great deal of time in Detroit, which was a hotbed of ragtime and cakewalk, but his publishing concern was located in New York--F. A. Mills, which was his real name--Frederick Allen Mills.