{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/react/issues/7353","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/7353/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/7353/comments","events_url":"https://api.github.com/repos/facebook/react/issues/7353/events","html_url":"https://github.com/facebook/react/issues/7353","id":167573667,"number":7353,"title":"Possibility to return pure text from render() without wrapping it in an element","user":{"login":"xkr47","id":1488474,"avatar_url":"https://avatars0.githubusercontent.com/u/1488474?v=3","gravatar_id":"","url":"https://api.github.com/users/xkr47","html_url":"https://github.com/xkr47","followers_url":"https://api.github.com/users/xkr47/followers","following_url":"https://api.github.com/users/xkr47/following{/other_user}","gists_url":"https://api.github.com/users/xkr47/gists{/gist_id}","starred_url":"https://api.github.com/users/xkr47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xkr47/subscriptions","organizations_url":"https://api.github.com/users/xkr47/orgs","repos_url":"https://api.github.com/users/xkr47/repos","events_url":"https://api.github.com/users/xkr47/events{/privacy}","received_events_url":"https://api.github.com/users/xkr47/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-26T10:24:52Z","updated_at":"2017-04-21T21:48:34Z","closed_at":"2017-04-21T21:48:34Z","body":"I'm asking if, in the light of #5753, it would be possible to also return plain text from `render()` as an alternative to the current `ReactElement` return type such that one would not have to wrap it in an element. Could the same comment-wrapping method allow for this also for render methods?\n\n``` js\n// Before\nreturn <span>{this.props.text}</span>;\n// After\nreturn this.props.text;\n```\n\nMotivation is that it is sometimes hard to get layout to work as expected if one has to introduce span elements, and the alternative is to write plain functions instead of react components to produce the expected result. It would be syntactically nice to be able to componentize text-only components the same way as \"html-enabled\" components.\n"}}
{"actor":{"display_login":"aweary"}}