Implement with React in vanilla JS