fix some errors and included react in package.json devDependencies