Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created December 3, 2022 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sendbird-community/be9b5621fff4411308ce67c09bd0d197 to your computer and use it in GitHub Desktop.
Save sendbird-community/be9b5621fff4411308ce67c09bd0d197 to your computer and use it in GitHub Desktop.
The initial details that the App component needs
const APP_ID = process.env.REACT_APP_APP_ID;
const USER_ID = process.env.REACT_APP_USER_ID;
const NICKNAME = process.env.REACT_APP_NICKNAME;
const ACCESS_TOKEN = process.env.REACT_APP_ACCESS_TOKEN;
function App() {
return (
<div className="App">
<SendbirdApp
appId={APP_ID} // Specify your Sendbird application ID.
userId={USER_ID} // Specify your user ID.
nickname={NICKNAME} //Specify nickname
accessToken={ACCESS_TOKEN} //If access token is generated in dashboard, it must be passed in here
/>
</div>
);
};
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment