react.rb icon indicating copy to clipboard operation
react.rb copied to clipboard

class: does not work well as a parameter for application classes

Open catmando opened this issue 9 years ago • 2 comments

If you specify a parameter name as :class it gets translated to :className before handed over to the component.

So if you want to receive a parameter called :class you have to declare it as :className

This is happening because of some translation needed for react.js components (where they expect className rather than class.) Could get tricky...

Anyway its not a patch level fix, as in most cases if you are trying to pass :class you really want to be just collecting all other attributes, and then passing them all along to the lower level components.

catmando avatar Dec 15 '15 02:12 catmando

I don't even think we need this for 0.9, if it get fixed before then great, if not, oh well.

catmando avatar Dec 15 '15 15:12 catmando

This issue was moved to reactrb/reactrb#101

sollycatprint avatar Jun 13 '16 13:06 sollycatprint