Using createOsmBuildings() in Resium library

Hi everyone,

I am planning to do a simple Cesium project using Resium library.
At the start of the project I got a problem with adding primitive using Resium.

In Cesium if you want to add ‘createOsmBuildings’, you simply do as following:

const viewer = new Cesium.Viewer("cesiumContainer", {
  terrainProvider: Cesium.createWorldTerrain(),


But in Resium I could not add the OSM buildings. I tried the following:

import { Entity, EntityDescription, PointGraphics, Primitive, Viewer } from "resium";
import { Cartesian3, createOsmBuildings, createWorldTerrain } from "cesium";
const osmBuilding = createOsmBuildings()
                   <Viewer full >
                        <Primitive ></Primitive>  // how to add the perimitive?
                        <Entity position={position} name="Tokyo">
                            <PointGraphics pixelSize={10} />
                                <h1>Hello, world.</h1>
                                <p>JSX is available here!</p>

Can anyone please help me?