Skip to content

Commit

Permalink
init app
Browse files Browse the repository at this point in the history
  • Loading branch information
chayeoi committed Jun 15, 2019
1 parent 8f944f3 commit da29c8e
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 136 deletions.
71 changes: 7 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,11 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
# Todo List

## Available Scripts
## 구현 기능

In the project directory, you can run:
1. 사용자는 입력 필드에 할 일을 입력하고 등록할 수 있다.
2. 사용자는 자신이 등록한 할 일 목록을 확인할 수 있다.
3. 사용자가 할 일 목록 3개를 등록하면 화면 하단에서 "오늘 할 일을 3개 등록하셨네요!" 메세지를 확인할 수 있다.

### `npm start`
## 구현 세부사항

Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br>
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br>
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br>
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.<br>
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `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.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
1. `useState` Hook을 사용하여 구현할 것
101 changes: 101 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1"
"react-scripts": "3.0.1",
"styled-components": "^4.3.1"
},
"scripts": {
"start": "react-scripts start",
Expand Down
33 changes: 0 additions & 33 deletions src/App.css

This file was deleted.

51 changes: 29 additions & 22 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
import React, { useState } from 'react';
import styled from 'styled-components';

function App() {
const S = {
Wrapper: styled.div`
`,
Title: styled.h1`
`,
Label: styled.label``,
Input: styled.input``,
Button: styled.button``,
TodoList: styled.ul``,
TodoItem: styled.li``,
Paragraph: styled.p``,
};

const App = () => {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
}
<S.Wrapper>
<S.Title>Todo List</S.Title>
<S.Label htmlFor="todo">할 일: </S.Label>
<S.Input type="text" id="todo" />
<S.Button type="button">추가</S.Button>
<S.TodoList>
</S.TodoList>
<S.Paragraph>
오늘 할 일을 3개 등록하셨네요!
</S.Paragraph>
</S.Wrapper>
)
};

export default App;
9 changes: 0 additions & 9 deletions src/App.test.js

This file was deleted.

5 changes: 5 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}

h1, h2, h3, h4, h5, h6, p {
margin: 0;
padding: 0;
}
7 changes: 0 additions & 7 deletions src/logo.svg

This file was deleted.

0 comments on commit da29c8e

Please sign in to comment.