Title: JS react error
Last modified: April 18, 2022

---

# JS react error

 *  Resolved [Joshua](https://wordpress.org/support/users/joshuavalentin/)
 * (@joshuavalentin)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/js-react-error/)
 * I keep getting this error when trying to add a icon to a block.
 * “Warning: Can’t perform a React state update on an unmounted component. This 
   is a no-op, but it indicates a memory leak in your application. To fix, cancel
   all subscriptions and asynchronous tasks in a useEffect cleanup function.”
 * I’m using a kit but tried all different ways.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [mlwilkerson](https://wordpress.org/support/users/mlwilkerson/)
 * (@mlwilkerson)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/js-react-error/#post-15572464)
 * Thanks for the report, [@joshuavalentin](https://wordpress.org/support/users/joshuavalentin/).
 * Could you let me know:
    – what version of WordPress you’re using? – what version
   of this plugin you’re using? – where you’re trying to add an icon to a block?(
   i.e. using the WordPress block editor to create/edit a page or post, or in the
   new site editor, or something else?)
 * It would also be helpful to know what version of React and ReactDOM are loaded
   on the page where this error occurs. You may able to inspect that by going into
   the JavaScript console (aka Web Console) on the page where you’re seeing the 
   error, and typing “React.version” (and Enter) to get the version of React, and“
   ReactDOM.version” (and Enter) to get the version of ReactDOM.
 * I’ve recently confirmed the functionality of this plugin’s Icon Chooser in a 
   clean installation of the latest version of WordPress, so I’m wondering about
   a potential conflict due to some other plugin or theme.
 * If you’re a Font Awesome Pro subscriber, you can get additional support by emailing
   hello at fontawesome dot com. (It’ll still be me helping you, but we could get
   more specific about the situation on your site than we could in this public forum.)
 *  Thread Starter [Joshua](https://wordpress.org/support/users/joshuavalentin/)
 * (@joshuavalentin)
 * [4 years ago](https://wordpress.org/support/topic/js-react-error/#post-15611577)
 * Hi Mike,
 * I will be following up via mail but answering the questions asked:
 * – Latest WP version 5.9.3
    – Font Awesome 4.1.1 – Adding icons in a Gutenberg
   Block under the “Display more block tools” option – React.version 17.0.1
 * All other plugins are disabled.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘JS react error’ is closed to new replies.

 * ![](https://ps.w.org/font-awesome/assets/icon-256x256.png?rev=1991998)
 * [Font Awesome](https://wordpress.org/plugins/font-awesome/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/font-awesome/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/font-awesome/)
 * [Active Topics](https://wordpress.org/support/plugin/font-awesome/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/font-awesome/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/font-awesome/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Joshua](https://wordpress.org/support/users/joshuavalentin/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/js-react-error/#post-15611577)
 * Status: resolved