SDKs
web-sdk
Best Practices

#Best practices Below are some best practices listed below to use in your web apps.

##initialize if you are using some framework like react/nextJs you can initialize and export app from your files

example, App.js

export const app = await initializeRembaseSync(<appId>)
function App(){
 
return (
    <div>  
    <div>
    )
}
 

Then use it in all your other components

import {app} from "./App.js"
function MyComponent(){
 
    console.log(app.currentUser)
 
return (
    <div>  
    <div>
    )
}