>>531992998
There's a book called gradus at parnassum from Fux, that is better than 99.9999% of the rest of compositional teaching materials.
Another book called figuring out melody also teaches how to compose music.
I learned composition from those two books.
As for other things, you have to learn like what are the sections of a song, like the intro, verse, chorus, bridge, coda.
Also, learn the types of instruments of modern EDM, which are lead, pluck, pad, bass, SFX, ambient, noise, drum kits.
Beyond that, just compose a lot using diferent chords from the circle of fiths.
In the end composition is less about finding a magical theory book that can make you good and is just composing and composing a lot.