Primitive renderComponent done
Small refactoring plus tests
Added ref and updates.
Added rootNodes list to enhance complexity, add more tests