{"action":"reopened","issue":{"url":"https://api.github.com/repos/InseeFr/Pogues/issues/14","labels_url":"https://api.github.com/repos/InseeFr/Pogues/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/InseeFr/Pogues/issues/14/comments","events_url":"https://api.github.com/repos/InseeFr/Pogues/issues/14/events","html_url":"https://github.com/InseeFr/Pogues/issues/14","id":65906112,"number":14,"title":"Problem with 'Component' component","user":{"login":"FranckCo","id":1111045,"avatar_url":"https://avatars.githubusercontent.com/u/1111045?v=3","gravatar_id":"","url":"https://api.github.com/users/FranckCo","html_url":"https://github.com/FranckCo","followers_url":"https://api.github.com/users/FranckCo/followers","following_url":"https://api.github.com/users/FranckCo/following{/other_user}","gists_url":"https://api.github.com/users/FranckCo/gists{/gist_id}","starred_url":"https://api.github.com/users/FranckCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FranckCo/subscriptions","organizations_url":"https://api.github.com/users/FranckCo/orgs","repos_url":"https://api.github.com/users/FranckCo/repos","events_url":"https://api.github.com/users/FranckCo/events{/privacy}","received_events_url":"https://api.github.com/users/FranckCo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/InseeFr/Pogues/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/InseeFr/Pogues/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":{"login":"romaintailhurat","id":1663283,"avatar_url":"https://avatars.githubusercontent.com/u/1663283?v=3","gravatar_id":"","url":"https://api.github.com/users/romaintailhurat","html_url":"https://github.com/romaintailhurat","followers_url":"https://api.github.com/users/romaintailhurat/followers","following_url":"https://api.github.com/users/romaintailhurat/following{/other_user}","gists_url":"https://api.github.com/users/romaintailhurat/gists{/gist_id}","starred_url":"https://api.github.com/users/romaintailhurat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romaintailhurat/subscriptions","organizations_url":"https://api.github.com/users/romaintailhurat/orgs","repos_url":"https://api.github.com/users/romaintailhurat/repos","events_url":"https://api.github.com/users/romaintailhurat/events{/privacy}","received_events_url":"https://api.github.com/users/romaintailhurat/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-02T11:21:33Z","updated_at":"2015-04-07T12:27:38Z","closed_at":null,"body":"For the rendering of the questionnaire, we have React components 'Component', 'Sequence' and 'Question' mapping the corresponding model classes. Component is a superclass of Sequence and Question.\r\n\r\nWhen structuring the rendering as Sequence -> Component -> Sequence or Question (see commit 333b1e8de41f3de789a4a2e002bdcd2f106bf9d4), the rendering bugs when there are sequences of depth 2 (ie sequences that are nested in others).\r\n\r\nWe have messages like: 'Warning: Only functions of strings can be mounted as React components', often followed by 'TypeError: element.type is not a constructor', and the questionnaire is not rendered at all.\r\n\r\nChanging the rendering structure to Sequence -> Sequence or Question (see commit cd38356620c5cb513eb5fc6be649b3dc74e30d68) seems to solve the problem."}}