Mitch VanDuyn

Results 207 issues of Mitch VanDuyn

for example ``` ruby div(attributes, {more: :stuff}, :big, id: "hello", style: {display: :none}) ``` should be the same as ``` ruby div(attributes.merge {more: :stuff, big: true, id: "hello, style: {display:...

should_update? passes two native object hashes (for new params, and new state) and only works properly if true or false are returned (i.e. nil does not work as false) This...

i.e. if you use ref to get the id of say a "div" then you can't say ref["my_div"].dom_node as you would expect. ``` ruby class Foo < React::Component::Base after_mount do...

Instead of passing procs to components for callbacks, use the event mechanism / syntax. Thus `MyComponent(zee_callback: -> (x) { puts x }...)` becomes `MyComponent(...).on(:zee_callback) { .... }` It just looks...

We need to clean this up for example the html attribute `default-value` should be expressible as `:default_value` or `"default-value"`. Sometimes things are getting converted, sometimes not. Also conversions should only...

Need some way to test components. Right now no reason why capybara will not work, but that is for testing entire view (or component tree), but we should have a...

discussion

React now has this notion of a "stateless" component, by which they mean a JS function that takes the "props" as it param, and generates an element. Its stateless because...

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...

current you have to write `div "data-tag1" => "foo", "data-tag2" => "bar", "arial-labeledby" => "file-menu"` instead it seems natural to say `div data: {tag1: :foo, tag2: :bar}, arial_labeledby: file_menu` similar...

the export_state macro does two things: 1) creates a state variables that is shared by all instances of the component class. 2) makes the state variable publicly accessible (outside the...

discussion