REACT JS
Fb: @WWCodeManila
Twitter: @WWCodeManila
#WWCodeManila
https://github.com/wwcodemanila/WWCodeManila-React
Kim
Tech Lead
React
ABOUT
Women Who Code (WWCode) is a global non-profit organization dedicated to inspiring women to excel in technology careers. We work to support this generation of technology professionals in being and becoming leaders and role models in the tech industry.
OUR MISSION
Inspiring women to excel in technology careers.
OUR VISION
A world where women are representative as technical executives, founders, VCs, board members and software engineers.
STUDY GROUP
Study groups are events where members can come together and help each other learn and understand a specific programming language, technology, or anything related to coding, engineering, design.
WHO ARE WELCOME?
Everyone is welcome to the event as long as they want to learn and share their knowledge with the community and they following the code of conduct.
GUIDELINES
ATTENDANCE
Please mark your in the study groups you are attending at
bit.ly/wwcodemanila
New Member’s Introduction
I am <name>
<your current profession>
<why react?>
SHOW & TELL
TOOLS
Tools
What is React?
Why React?
Virtual DOM
Page Setup
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
<div id="myDiv"></div>
<script type="text/babel">
<!-- React Code Goes Here -->
</script>
</body>
</html>
https://babeljs.io/
JSX
LET’S START BUILDING!
Getting Started
yarn global add create-react-app
cd hello-world
yarn start
yarn create react-app hello-world
Install create-react-app
Run the app
Create your hello-world app
package.json
{
"name": "hello-world",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "1.1.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
index.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<title>React App</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
</body>
</html>
App.js, Component.js
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to React</h1>
</header>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</div>
);
}
}
export default App;
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
const App = () => {
return (
<div className="App" onClick={someFunction}>
<header className="App-header">
<img src={logo className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to React</h1>
</header>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</div>
);
}
export default App;
COMPONENTS, PROPS AND STATE
Components
Props
State
Partner/Group/Individual Exercise
Partner/Group/Individual Presentation
Assignment
References
T.I.L.
SHARE IT!
In front!
On Twitter: @wwcodemanila
Or FB: fb.com/wwcodemanila
Don’t forget to tag WWCodeManila so we can retweet or share it.�
Feedback Form
https://goo.gl/YzSqcS
If you have any feedback, please send it via the feedback form instead of posting it in our meetup group. This is very impt so we can improve the community. Thank you.
Gitter
https://gitter.im/WWCodeManila/JavaScript
If you need someone to talk to.
THANK YOU :)