Skip to content

Hw 1 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 64 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,64 @@
/node_modules
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# IDE
.idea
File renamed without changes.
9 changes: 6 additions & 3 deletions classworks/lesson-1/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ const mountNode = document.getElementById('app');


setInterval( () => {
ReactDOM.render(<h1>${counter++}</h1>, mountNode);
ReactDOM.render(<h1>{counter++}</h1>, mountNode);

}, 1000)*/
}, 1000)
*/
//----------------------------------------------


/*const HelloWorld = (props) => {
console.log('props', props);
return <h1>Hello world {props.userName}</h1>
}

ReactDOM.render(<HelloWorld userName="Easycode student"/>, mountNode)*/

//-------------------------------------------------

let list = ['Vue', 'Angular', 'React'];
const frameworks = list.map((item, i) => {
return <li key={i}>{item}</li>
Expand Down
4 changes: 4 additions & 0 deletions homeworks/homework-1/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
}
20 changes: 20 additions & 0 deletions homeworks/homework-1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Homework 1</title>
<style type="text/css">

</style>
<!-- <link data-require="[email protected]" data-semver="3.3.6" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.css"/> -->
<link rel="stylesheet" type="text/css" href="bundle.css">

</head>
<body>
<h1>Homework 1</h1>
<div id="app"></div>

<script type="text/javascript" src="bundle.js"></script>

</body>
</html>
Loading