The end of the war resulted in the establishment of the Socialist Federal Republic of Yugoslavia , with the Constitution of the Socialist Federal Republic of Yugoslavia officially making Croatia and Bosnia and Herzegovina one of six constituent republics in the new state .
The end of the war resulted in the establishment of the Democratic Republic of Yugoslavia ( which later became the Socialist Federal Republic of Yugoslavia ) , with the Constitution of 1946 officially making each of Croatia and Bosnia and Herzegovina one of the six constituent republics of the new state .