Changes between Initial Version and Version 1 of Ticket #62422, comment 31
- Timestamp:
- 01/07/2025 05:41:31 PM (12 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #62422, comment 31
initial v1 3 3 To fix the issue, ensure your custom scripts rely on WordPress's React (`wp-element`) instead of a third-party version. Update your `functions.php` to enqueue scripts properly: 4 4 5 ```php 5 6 6 function enqueue_custom_scripts() { 7 7 wp_enqueue_script( … … 14 14 } 15 15 add_action('wp_enqueue_scripts', 'enqueue_custom_scripts'); 16 ``` 16 17 17 18 18 Ensure all block descriptions are strings and replace `createRoot` with `ReactDOM.render`. Dequeue any conflicting React scripts. If the issue persists, debug further by temporarily switching to a default theme.