Swap [[w h] state] to [state [w h]] for CustomComponent.