Right...The Republicans replaced the Whigs, IIRC.
The Whigs were basically an anti-Jackson party. The Federalists died out after the War of 1812 and for a time the Democratic-Republicans were the only party in town”The Era of Good Feelings”. But Jackson and his policies rubbed a lot of people the wrong war and so the Whigs were organized to opposed him.
After Jackson’s Presidency, Jackson was still politically very powerful and acted as a kingmaker. But when he died, Whigs’ reason for existence died as well. Slavery vs Anti-Slavery became the issue and the modern Republican party arose from the ashes of the northern part of the Whig party.