No! Primate Mutation!

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

    0.1.13 • Public • Published

    @dxos/react-client

    React client API

    Installation

    pnpm i @dxos/react-client

    Usage

    The snippet below illustrates a self-contained DXOS application that uses providers to create the client and instantiate a user profile.

    import { useClient, ClientProvider, ProfileInitializer } from '@dxos/react-client';
    import React from 'react';
    import { createRoot } from 'react-dom/client';
    
    const App = () => {
      const client = useClient();
    
      return (
        <pre>{JSON.stringify(client.info())}</pre>
      );
    };
    
    const Root = () => (
      <ClientProvider>
        <ProfileInitializer>
          <App />
        </ProfileInitializer>
      </ClientProvider>
    );
    
    createRoot(document.getElementById('root')!)
      .render(<Root/>);

    Storybooks

    The HALO Invitation Story demonstrates multiple clients (devices) joining the same HALO. Demo video.

    The Space Invitation Story demonstrates multiple clients creating and sharing spaces. Demo video.

    DXOS Resources

    Contributions

    Your ideas, issues, and code are most welcome. Please take a look at our community code of conduct, the issue guide, and the PR contribution guide. If you would like to contribute to the design and implementation of DXOS, please start with the contributor's guide.

    License: MIT Copyright 2022 © DXOS

    Keywords

    none

    Install

    npm i @dxos/react-client

    Homepage

    dxos.org

    DownloadsWeekly Downloads

    2,360

    Version

    0.1.13

    License

    MIT

    Unpacked Size

    147 kB

    Total Files

    156

    Last publish

    Collaborators

    • zhenya-dxos
    • mykola-vrmchk
    • dxos-bot
    • gcolotti
    • sebikap-gm2
    • richburdon
    • egorgripasov
    • marik_d
    • rzad-p
    • yivlad
    • mesch
    • zarconontol
    • wittjosiah