mint icon indicating copy to clipboard operation
mint copied to clipboard

Reduce root div nesting

Open Vechro opened this issue 5 years ago • 0 comments

image

Take a look at the divs without classes.

When compiling Mint, it creates multiple nested divs. The way it was explained to me is that the root div is necessary as its used by React and extensions may interfere with the contents of <body>, confusing React, but the second div is used for listening events and the third div is from Main.mint (so in essence the third div is something I added myself).

I suggest combining the first and second div into one to reduce the unnecessary nesting.

Vechro avatar Jul 09 '20 08:07 Vechro