The pond is a collection of simple Fluid scenarios used primarily for testing.
You can run this example using the following steps:
- Run
npm install
andnpm run build:fast -- --nolint
from theFluidFramework
root directory. a. For an even faster build, you can add the package name to the build command, like this:npm run build:fast -- --nolint @fluid-example/pond
- Run
npm run start
from this directory (examples/data-objects/pond) and open http://localhost:8080 in a web browser to see the app running.
Similar to the @fluid-example/clicker
but renders two clickers. One using the this.root
SharedDirectory and the other using a newly created SharedMap that is stored on the root.
An example that uses Container Providers to get an render current user information. This information
will only be rendered if the Container provides a Provider for IFluidUserInformation
.
The Pond renders all three of the above Fluid Objects.
The Container logic also initializes the UserInfo Provider below.
An example Container Provider that implements the IFluidUserInformation
interface.
The container is defined in src/index.tsx