Media and macros not getting rendered using @atlaskit/renderer in react app

I am using renderer from atlaskit to render page content from confluence (using rest api) inside my react project but am facing issues with loading of media and macros dynamically inside my app.

Is there anything I need to configure in my react app, for example, maybe some webpack plugin or something?

I am new to using confluence rest apis and atlaskit.
Any suggestions/help would be very helpful…