RNAs most probably could have catalyzed the formation of lipid like molecules that could have in turn formed plasma membrane and proteins. The proteins might have taken over most enzymatic heredity molecule then, DNA evolved from RNA template. Once cells were evolved, DNA probably replaced RNA in most organisms