問題タブ [onrender]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
reactjs - React Profiler API が何もログに記録しないのはなぜですか?
React プロファイラーを使用しようとしていますが、onRender メソッドがこのような場合にのみ機能します。
<Profiler id="BrowseCategories" onRender={console.log('hi')} }></Profiler>
これを行うと何も記録されません
<Profiler id="BrowseCategories" onRender={callback} }></Profiler>
これは私のコールバック関数です