aphrodite
aphrodite copied to clipboard
Calling set state and optionally setting styles isn't working
Currently I am setting styles in my CRA app using a ternary operator.
The classes set properly, I can see the styles in the style tag but for whatever reason they do not apply.
This is what I have:
className={ css(this.state.fixed ? style.navContainerFixed : style.navContainer)
It is very similar to what is happening in the example here: https://github.com/Khan/aphrodite/blob/master/examples/src/StyleTester.js#L37

Thanks in advance everyone.
Could this be similar to #76?