use foliage factory and not react-dom for dynamic elements