react-html-parser icon indicating copy to clipboard operation
react-html-parser copied to clipboard

Is it possible to pass props to ReactHtmlParser?

Open lauriskuznecovs opened this issue 7 years ago • 2 comments

It would be very handy for some cases if there would be any way to pass custom props to ReactHtmlParser(). Why? If you have for example dynamic wrapper in some cases you would need to specify className or some other attributes for tags.

lauriskuznecovs avatar Dec 20 '18 21:12 lauriskuznecovs

You can use React Context API @lauriskuznecovs

rizalibnu avatar Dec 28 '18 12:12 rizalibnu

You can use React Context API @lauriskuznecovs

Can you explain how to do this?

mateodelnorte avatar Aug 24 '20 16:08 mateodelnorte