Firstly, react-diff-viewer inserts the <style> tag to render CSS styles, but in some cases (such as Micro-Frontends, I'm using qiankun framework), the code styles will be lost:
So I think above problem can be solved by inline CSS styles, or put the styles to .css file. This is a valid guess, for example, react-codemirror2 with similar functions is put CSS styles to .css files, and its style is normal.
Totally, I hope react-diff-viewer can support multiple way to render CSS styles, instead of only <style> tag.
Firstly,
react-diff-viewer
inserts the<style>
tag to render CSS styles, but in some cases (such as Micro-Frontends, I'm using qiankun framework), the code styles will be lost:So I think above problem can be solved by inline CSS styles, or put the styles to
.css
file. This is a valid guess, for example, react-codemirror2 with similar functions is put CSS styles to.css
files, and its style is normal.Totally, I hope
react-diff-viewer
can support multiple way to render CSS styles, instead of only<style>
tag.