even the creator of preact said he doesn't know if he infringed FB patents with the creation of preact, because nobody knows what React covering patents FB holds.
And in this, the situation is exactly the same as with any front end library, or even not using one at all. It's almost impossible to know if you're infringing any patents.