{"action":"opened","issue":{"url":"https://api.github.com/repos/raulfdm/controle-ponto/issues/5","repository_url":"https://api.github.com/repos/raulfdm/controle-ponto","labels_url":"https://api.github.com/repos/raulfdm/controle-ponto/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/raulfdm/controle-ponto/issues/5/comments","events_url":"https://api.github.com/repos/raulfdm/controle-ponto/issues/5/events","html_url":"https://github.com/raulfdm/controle-ponto/issues/5","id":182952366,"number":5,"title":"Refatoração para utilizar export default.","user":{"login":"raulfdm","id":12464600,"avatar_url":"https://avatars.githubusercontent.com/u/12464600?v=3","gravatar_id":"","url":"https://api.github.com/users/raulfdm","html_url":"https://github.com/raulfdm","followers_url":"https://api.github.com/users/raulfdm/followers","following_url":"https://api.github.com/users/raulfdm/following{/other_user}","gists_url":"https://api.github.com/users/raulfdm/gists{/gist_id}","starred_url":"https://api.github.com/users/raulfdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulfdm/subscriptions","organizations_url":"https://api.github.com/users/raulfdm/orgs","repos_url":"https://api.github.com/users/raulfdm/repos","events_url":"https://api.github.com/users/raulfdm/events{/privacy}","received_events_url":"https://api.github.com/users/raulfdm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-14T02:58:35Z","updated_at":"2016-10-14T02:58:35Z","closed_at":null,"body":"Issue baseada no comentário abaixo:\r\n\r\n```wesleycoder 11 hours ago\r\nQuando a intenção é exportar uma classe/funcionalidade principal de um arquivo como aqui onde a classe exportada tem o mesmo nome do arquivo recomenda-se usar a sintaxe export default DataHelper; no final do arquivo. Assim podemos manter também a sintaxe atual porém poderemos importar o módulo com uma sintaxe um pouco mais clara: import DataHelper from 'js/app/helpers/DateHelper.js'; ao invés de import { DataHelper } from 'js/app/helpers/DateHelper.js';.\r\n\r\nA keyword default após o export indica que esse será o export padrão do módulo que será exportado quando não usar-mos imports nomeados (entre chaves). Assim só podemos ter uma única keyword default por módulo.```"}}
{"actor":{"display_login":"raulfdm"}}