RemBase documentationpricingpricingContact ↗Contact ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)DiscordDiscord (opens in a new tab)
  • Introduction
  • RemBase features
    • Cloud functions
    • Endpoints
    • Application values and secrets
    • Add Dependencies
  • SDKs
    • android-sdk
      • Initialize
    • flutter-sdk
      • Getting started
      • Initialize
      • Authentication
      • Call backend functions
      • Best Practices
    • ios-sdk
      • Initialize
    • web-sdk
      • Getting started
      • Initialize
      • Authentication
      • Call backend functions
      • Best Practices
  • Best Practices
    • Self Host
    • Testing
    • Web
      • Server Side Compatibility
  • Pricing
  • help
    • Context
  • Introduction
  • pricing
  • Contact ↗ (opens in a new tab)
  • RemBase features
    • Cloud functions
    • Endpoints
    • Application values and secrets
    • Add Dependencies
  • SDKs
    • android-sdk
      • Initialize
    • flutter-sdk
      • Getting started
      • Initialize
      • Authentication
      • Call backend functions
      • Best Practices
    • ios-sdk
      • Initialize
    • web-sdk
      • Getting started
      • Initialize
      • Authentication
      • Call backend functions
      • Best Practices
  • Best Practices
    • Self Host
    • Testing
    • Web
      • Server Side Compatibility
  • Pricing
  • help
    • Context
Question? Give us feedback → (opens in a new tab)Edit this page
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>
    )
}
 
Call backend functionsSelf Host

MIT 2025 © Nextra.