@instantdb/react
TypeScript icon, indicating that this package has built-in type declarations

0.17.21 • Public • Published

Shows the Instant logo

@instantdb/react

stars

Get Started · Examples · Try the Demo · Docs · Discord

Welcome to Instant's React SDK.

// ༼ つ ◕_◕ ༽つ Real-time Chat
// ----------------------------------
// * Updates instantly
// * Multiplayer
// * Works offline
function Chat() {
  // 1. Read
  const { isLoading, error, data } = useQuery({
    messages: {},
  });

  // 2. Write
  const addMessage = (message) => {
    transact(tx.messages[id()].update(message));
  };

  // 3. Render!
  return <UI data={data} onAdd={addMessage} />;
}

Get Started

Follow the getting started tutorial to set up a live React app in under 5 minutes! Or you can try an interactive demo in your browser :).

Questions?

If you have any questions, feel free to drop us a line on our Discord

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.17.210latest
0.17.18-experimental.10experimental

Version History

VersionDownloads (Last 7 Days)Published
0.17.210
0.17.200
0.17.190
0.17.180
0.17.18-experimental.10
0.17.18-experimental.00
0.17.170
0.17.16-experimental.10
0.17.15271
0.17.1367
0.17.12579
0.17.1125
0.17.10189
0.17.9218
0.17.80
0.17.75
0.17.60
0.17.57
0.17.40
0.17.31
0.17.212
0.17.10
0.17.01
0.17.0-experimental.50
0.17.0-experimental.40
0.16.7101
0.17.0-experimental.30
0.17.0-experimental.20
0.17.0-experimental.10
0.17.0-experimental.00
0.16.657
0.16.513
0.16.40
0.16.38
0.16.217
0.16.10
0.16.00
0.15.9307
0.15.80
0.15.70
0.15.60
0.15.51
0.15.40
0.15.30
0.15.20
0.15.1-experimental.10
0.15.1-experimental.00
0.15.10
0.15.00
0.14.30191
0.14.2917
0.14.280
0.14.28-experimental.00
0.14.273
0.14.260
0.14.250
0.14.240
0.14.230
0.14.220
0.14.210
0.14.200
0.14.191
0.14.181
0.14.170
0.14.160
0.14.150
0.14.140
0.14.131
0.14.120
0.14.110
0.14.100
0.14.90
0.14.80
0.14.50
0.14.40
0.14.315
0.14.20
0.14.10
0.14.055
0.13.20
0.13.10
0.13.00
0.12.37239
0.12.360
0.12.350
0.12.342
0.12.330
0.12.320
0.12.311
0.12.300
0.12.290
0.12.270
0.12.260
0.12.250
0.12.240
0.12.24-experimental.00
0.12.230
0.12.220
0.12.210
0.12.200
0.12.19-experimental.10
0.12.190
0.12.19-experimental.00
0.12.180
0.12.170
0.12.160
0.12.15-alpha.30
0.12.15-alpha.00
0.12.141
0.12.130
0.12.120
0.12.110
0.12.100
0.12.90
0.12.80
0.12.70
0.12.62
0.12.50
0.12.40
0.12.30
0.12.20
0.12.10
0.12.00
0.11.50
0.11.40
0.11.30
0.11.20
0.11.10
0.11.00
0.10.322
0.10.310
0.10.300
0.10.290
0.10.280
0.10.270
0.10.260
0.10.250
0.10.240
0.10.230
0.10.220
0.10.210
0.10.200
0.10.190
0.10.180
0.10.170
0.10.160
0.10.150
0.10.140
0.10.131
0.10.110
0.10.100
0.10.90
0.10.80
0.10.70
0.10.60
0.10.50
0.10.40
0.10.30
0.10.20
0.10.10
0.10.00
0.9.60
0.9.50
0.9.40
0.9.30
0.9.20
0.9.10
0.9.00
0.8.30
0.8.20
0.8.10
0.8.00
0.7.181
0.7.170
0.7.160
0.7.150
0.7.140
0.7.130
0.7.120
0.7.110
0.7.100
0.7.90
0.7.80
0.7.70
0.7.60
0.7.50
0.7.40
0.7.30
0.7.20
0.7.10
0.7.00
0.6.50
0.6.40
0.6.30
0.6.20
0.6.10
0.6.00
0.5.170
0.5.160
0.5.150
0.5.140
0.5.130
0.5.120
0.5.110
0.5.100
0.5.90
0.5.80
0.5.70
0.5.60
0.5.50
0.5.40
0.5.30
0.5.20
0.5.10
0.5.00
0.4.30
0.4.20
0.4.10
0.4.00
0.3.3940
0.3.3932
0.3.3922
0.3.3912
0.3.392
0.3.382

Package Sidebar

Install

npm i @instantdb/react

Weekly Downloads

2,133

Version

0.17.21

License

none

Unpacked Size

512 kB

Total Files

90

Last publish

Collaborators

  • stopachka
  • nezaj
  • markyfyi
  • dww
  • reichertjalex