disabling a html element rendered by a tierce library component without having access to the source code in react

Most likely, there is no official way to do this with React. Without access to a component’s source code, you can’t modify its output or render logic unless you use jQuery or vanilla JS (or maybe even CSS). Using these methods WOULD be odd in React and generally frowned upon, but if it works, it works.

However, there might be a way to achieve your goal with the specific imported component or codebase you’re working with. If you don’t or can’t include that information, we can’t help you much more than general statements (like above).

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top