Unlike copyright, patents apply to anything that uses the patented method. This means that if Facebook have any patents on react (and so far I haven't seen anyone actually point to specific patents) they would apply to anything using the same techniques which would likely include any similar library.