You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the structure of the initial state does not need to be defined up front, for example in the hobby sample, the initial state is basically an empty data object. As you type in the form fields, the structure of the data object is filled in, and you can see that in your pretty json.
getInitialState: function(){return{data: {}};},
I tried to see how far that would go, and created a new plnkr that added 2 more inputs
The 2 level deep object was filled in as expected, just like your existing inputs. The 3 level deep object did not fill in. This may be expected, but not sure. It would be slick if that worked as well.
edit ...
Adding the plnkr url for the updated sample
First off I really like your project.
It looks like the structure of the initial state does not need to be defined up front, for example in the hobby sample, the initial state is basically an empty data object. As you type in the form fields, the structure of the data object is filled in, and you can see that in your pretty json.
I tried to see how far that would go, and created a new plnkr that added 2 more inputs
The 2 level deep object was filled in as expected, just like your existing inputs. The 3 level deep object did not fill in. This may be expected, but not sure. It would be slick if that worked as well.
edit ...
Adding the plnkr url for the updated sample
http://plnkr.co/edit/802962ElwKUd8tPFYan2?p=preview
The text was updated successfully, but these errors were encountered: