Closed bonizario closed 8 months ago
Describe the bug The returned function of cn() expects an optional configuration object as a parameter.
cn()
Calling it without passing anything raises an error.
To Reproduce Steps to reproduce the behavior:
cn
cn('text-white')()
Expected behavior It should be possible to call the cn function without passing a configuration object.
Screenshots
Desktop (please complete the following information):
Closing per discussion in the PR. Consider cnBase and cn as deprecated given their use is intended to be internal only.
cnBase
Describe the bug The returned function of
cn()
expects an optional configuration object as a parameter.Calling it without passing anything raises an error.
To Reproduce Steps to reproduce the behavior:
cn
function without passing parameters e.g.:cn('text-white')()
.Expected behavior It should be possible to call the
cn
function without passing a configuration object.Screenshots
Desktop (please complete the following information):