I don't know if the second analogy of the cake fits properly because you still need to write the code. The way you put it is like using some builder website.
Sorry, I just found it still confusing.
Also, if you could give an example of different frameworks. I would really like it if you could explain it using ReactJS framework.