Using classNameBindings: ['foo'] is ambiguous and depends on the runtime value of the foo property.
foo: 'BarBaz' will cause class="bar-baz"
foo: true will cause class="foo"
foo: false will cause class=""
foo: '' 🤷♂
We will need to decide what we want to do about this. Currently the codemod skips components that use this pattern.
Alternatives:
- Introduce a helper that resolves this issue at runtime.
- Use an interactive prompt each time this pattern is encountered and ask the user if this ia s boolean or string property.
Using
classNameBindings: ['foo']is ambiguous and depends on the runtime value of thefooproperty.foo: 'BarBaz'will causeclass="bar-baz"foo: truewill causeclass="foo"foo: falsewill causeclass=""foo: ''🤷♂We will need to decide what we want to do about this. Currently the codemod skips components that use this pattern.
Alternatives: