Refactored to use the VanillaDragon module. Refactored the react component to include the utility functions as part of the component. Removed now unneeded dependencies.