I have just reread Gene Stratton Porter's *Freckles* (1903). I wish that these turn of the century children's novels were not so persistently pro-eugenics. Less in this than in Jean Webster's *Daddy Long Legs* (1912), but still.
I just checked and both authors died before the 1940s eugenics nadir.