Video Tutorial Composition


React's component system simplifies composition and we will tend not to rely on the inheritance offered at the level of JavaScript objects.

function Button ({children, type, ... props}) {
    return 
}

// Composition replaces heritage
function PrimaryButton ({children, ... props}) {
    return 
}