# How to use React Profiler on Forge Apps

**URL:** <https://community.developer.atlassian.com/t/how-to-use-react-profiler-on-forge-apps/77971>\
**Category:** Forge\
**Tags:** react, profiler\
**Created:** [March 5, 2024, 1:39pm UTC](https://community.developer.atlassian.com/t/how-to-use-react-profiler-on-forge-apps/77971 "2024-03-05T13:39:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BertrandDrouhard1](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/bertranddrouhard1/32/49835_2.png) [@BertrandDrouhard1](https://community.developer.atlassian.com/u/BertrandDrouhard1)\
**Post date:** [March 5, 2024, 1:39pm UTC](https://community.developer.atlassian.com/t/how-to-use-react-profiler-on-forge-apps/77971/1 "2024-03-05T13:39:34Z")

</div>

Hi,

I am trying to use React Profiler on a Forge App, but can’t make it work.  
I have no error messages, just that the callback is never called.  
To be sure that it was not coming from my App, I tried it with the ‘Hello World’ Jira app. Same problem.  
Here is the code:

```auto
import React, { Profiler } from 'react';
import ForgeReconciler, { Text } from '@forge/react';

const App = () => {
  return (
    <>
      <Text>Hello world!</Text>
    </>
  );
};

const logTimes = (id, phase, actualTime, baseTime, startTime, commitTime) => {
  console.log(`${id}'s ${phase} phase:`);
  console.log(`Actual time: ${actualTime}`);
  console.log(`Base time: ${baseTime}`);
  console.log(`Start time: ${startTime}`);
  console.log(`Commit time: ${commitTime}`);
};

ForgeReconciler.render(
  <React.StrictMode>
    <Profiler id="App" onRender={logTimes}>
      <App />
    </Profiler>
  </React.StrictMode>
);

```

Any idea? Thanks for your help!

> **[– React](https://react.dev/reference/react/Profiler)**
>
> The library for web and native user interfaces
