diff --git a/react/.gitignore b/react/.gitignore deleted file mode 100644 index 8e8b40a..0000000 --- a/react/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# dependencies -node_modules - -# production -build - -# misc -.DS_Store -npm-debug.log diff --git a/react/README.md b/react/README.md deleted file mode 100644 index 23dd5bb..0000000 --- a/react/README.md +++ /dev/null @@ -1,389 +0,0 @@ -Below you will find some information on how to perform common tasks. -You can find the most recent version of this guide [here](https://github.com/facebookincubator/create-react-app/blob/master/template/README.md). - -## Sending Feedback - -We are always open to [your feedback](https://github.com/facebookincubator/create-react-app/issues). - -## Folder Structure - -After creation, your project should look like this: - -``` -my-app/ - README.md - index.html - favicon.ico - node_modules/ - package.json - src/ - App.css - App.js - index.css - index.js - logo.svg -``` - -For the project to build, **these files must exist with exact filenames**: - -* `index.html` is the page template; -* `favicon.ico` is the icon you see in the browser tab; -* `src/index.js` is the JavaScript entry point. - -You can delete or rename the other files. - -You may create subdirectories inside `src`. For faster rebuilds, only files inside `src` are processed by Webpack. -You need to **put any JS and CSS files inside `src`**, or Webpack won’t see them. - -You can, however, create more top-level directories. -They will not be included in the production build so you can use them for things like documentation. - ->**Known Issue:** -> ->You may encounter an issue where changing a file inside `src` doesn’t trigger a recompilation. Most likely this happens because the path in your filesystem differs in its casing from the path you imported. For example, if a file is called `App.js` but you are importing `app.js`, the watcher might not recognize changes to it. We are [considering](https://github.com/facebookincubator/create-react-app/issues/240) enforcing some checks to prevent this. If this doesn’t help, check out the page on [troubleshooting watching](https://webpack.github.io/docs/troubleshooting.html#watching). - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.
-Open [http://localhost:3000](http://localhost:3000) to view it in the browser. - -The page will reload if you make edits.
-You will also see any lint errors in the console. - -### `npm run build` - -Builds the app for production to the `build` folder.
-It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.
-Your app is ready to be deployed! - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## How To... - -### Install a Dependency - -The generated project includes React and ReactDOM as dependencies. It also includes a set of scripts used by Create React App as a development dependency. You may install other dependencies (for example, React Router) with `npm`: - -``` -npm install --save -``` - -### Import a Component - -This project setup supports ES6 modules thanks to Babel. -While you can still use `require()` and `module.exports`, we encourage you to use [`import` and `export`](http://exploringjs.com/es6/ch_modules.html) instead. - -For example: - -### `Button.js` - -```js -import React, { Component } from 'react'; - -class Button extends Component { - render() { - // ... - } -} - -export default Button; // Don’t forget to use export default! -``` - -### `DangerButton.js` - -```js -import React, { Component } from 'react'; -import Button from './Button'; // Import a component from another file - -class DangerButton extends Component { - render() { - return - - - - - - ); - } -} - -export default App; diff --git a/react/src/index.js b/react/src/index.js deleted file mode 100644 index 7debbc5..0000000 --- a/react/src/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; -import PasswordGenerator from './components/PasswordGenerator'; - -ReactDOM.render( - , - document.getElementById('root') -); diff --git a/react/src/logo.svg b/react/src/logo.svg deleted file mode 100644 index 6b60c10..0000000 --- a/react/src/logo.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - -