Hi, I'm trying to learn how to properly extract components that have a 
model and update functions to standalone components, but I'm not sure if 
I'm doing a good job.

The guide I've found incomplete on nesting, the todomvc example is just one 
file, and I can't find good info around. I'd really appreciate some code 
review.

It is the gif app, I'm trying to extract the search form, which has 
internal state (the query in the input), but also has a message that the 
parent is interested in (submit on the form) in order to trigger the gif 
fetching.

https://github.com/joakin/gimme-gif/commit/a6bf98da1f7f018a29456930a1886c9fa908bde3

Even if the SearchForm doesn't return Cmds, I'm trying to properly merge 
them with the ones on the parent to get the idea. Would this be how you'd 
do it?

Thanks a lot, my brain hurts from learning, it is nice :)

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to