{"action":"closed","issue":{"url":"https://api.github.com/repos/react-icons/react-icons/issues/114","repository_url":"https://api.github.com/repos/react-icons/react-icons","labels_url":"https://api.github.com/repos/react-icons/react-icons/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/react-icons/react-icons/issues/114/comments","events_url":"https://api.github.com/repos/react-icons/react-icons/issues/114/events","html_url":"https://github.com/react-icons/react-icons/issues/114","id":254922169,"node_id":"MDU6SXNzdWUyNTQ5MjIxNjk=","number":114,"title":"How to reference icon import as variable from another file?","user":{"login":"praiseTheKek","id":30218512,"node_id":"MDQ6VXNlcjMwMjE4NTEy","avatar_url":"https://avatars1.githubusercontent.com/u/30218512?v=4","gravatar_id":"","url":"https://api.github.com/users/praiseTheKek","html_url":"https://github.com/praiseTheKek","followers_url":"https://api.github.com/users/praiseTheKek/followers","following_url":"https://api.github.com/users/praiseTheKek/following{/other_user}","gists_url":"https://api.github.com/users/praiseTheKek/gists{/gist_id}","starred_url":"https://api.github.com/users/praiseTheKek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praiseTheKek/subscriptions","organizations_url":"https://api.github.com/users/praiseTheKek/orgs","repos_url":"https://api.github.com/users/praiseTheKek/repos","events_url":"https://api.github.com/users/praiseTheKek/events{/privacy}","received_events_url":"https://api.github.com/users/praiseTheKek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-04T02:39:30Z","updated_at":"2018-07-30T04:47:02Z","closed_at":"2018-07-30T04:47:02Z","author_association":"NONE","body":"So far I have been referencing the library to make a variable\r\n`let IconBomb = require('react-icons/lib/fa/bomb');`\r\nThen in my html I call it as\r\n`<IconBomb/>`\r\n\r\nNow I have multiple files that need `IconBomb`, so I want to make a separate `icons.js` file that includes all my icon variables.\r\n```\r\nlet IconBomb = require('react-icons/lib/fa/bomb');\r\nlet IconClose = require('react-icons/lib/fa/close');\r\nlet IconAudio = require('react-icons/lib/md/audiotrack');\r\nlet IconUnlock = require('react-icons/lib/fa/unlock-alt');\r\nlet IconLock = require('react-icons/lib/fa/lock');\r\n```\r\n\r\nHow can I import these variables to be used by various components?"}}
{"actor":{"display_login":"kamijin-fanta"}}