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.