Open catmando opened 9 years ago
Say you do this:
React.render(React.create_element(MyFatComponent), Element['div.navigation'])
and you forget to require 'my_fat_component' Nothing happens, and there are no errors or warnings.
require 'my_fat_component'
Instead the create_element binding (and similar) should make sure the constant does exist and responds to render.
This issue was moved to reactrb/reactrb#30
Say you do this:
React.render(React.create_element(MyFatComponent), Element['div.navigation'])
and you forget to
require 'my_fat_component'
Nothing happens, and there are no errors or warnings.Instead the create_element binding (and similar) should make sure the constant does exist and responds to render.