DEV Community

Cover image for Million 3.0: All You Need To Know

Million 3.0: All You Need To Know

Tobiloba Adedeji on February 05, 2024

Introduction To be honest, it fills me with great joy to finally be able to witness the launch of the 3.0.0 major release of Million.js;...
Collapse
 
adaptive-shield-matrix profile image
Adaptive Shield Matrix

Does it allow passing react components in props?
Does it allow passing functions in props?

Last time I tried Million.js it only allowed serializable simple value props.
So it was not really usable to me since the most simple components (the only use cases where it could be used) were never really in need for optimized performance to begin with.

Collapse
 
tobysolutions profile image
Tobiloba Adedeji

You can as well try and let me know, you shouldn't have any problems though if you will be using automatic mode

Collapse
 
lebbe profile image
Lars-Erik Bruce • Edited

O(n) === O(d), that's just how O works. So, the algorithm isn't faster, but it operates on less input?

Collapse
 
tobysolutions profile image
Tobiloba Adedeji

Nope it actually is. Two things called: Static-Analysis and Dirty-Checking that blocks have make it so.

million.dev/blog/virtual-dom