This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Kisi extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return <div>Merhaba {this.props.isim}</div> | |
} | |
} | |
class Selamlama extends React.Component { | |
constructor(props) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Content = React.createClass( | |
{ | |
getDefaultProps() | |
{ | |
return { name: 'UMUT' }; | |
}, | |
render() | |
{ | |
return <div><h3>{this.props.name}</h3></div> | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Content = React.createClass( | |
{ | |
getDefaultProps() | |
{ | |
return { name: 'UMUT' }; | |
}, | |
render() | |
{ | |
return <div><h3>{this.props.name}</h3></div> | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class App extends Component | |
{ | |
constructor(props) | |
{ | |
super(props); | |
this.state = { deger: 0 } | |
this.arttirFunction = this.arttirFunction.bind(this) | |
}; | |
arttirFunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { deger: 0 } | |
this.arttirFunction = this.arttirFunction.bind(this) | |
} | |
arttirFunction() { | |
this.setState({ deger: this.state.deger + 1 }) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Hello World</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.6.1/react.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.6.1/react-dom.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.25.0/babel.js"></script> | |
<script type="text/babel"> | |
ReactDOM.render( | |
<h1>Merhaba</h1>,document.getElementById('root')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.6.1/react.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.6.1/react-dom.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.25.0/babel.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/babel"> | |
ReactDOM.render( | |
<h1>Hello World</h1>,document.getElementById('root')); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div id="root"></div> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** | |
* Let Örnekleri | |
*/ | |
let deger1 =10; | |
deger1=5; //deger1 let ile tanımlandığı için degişiklik yapılabilir. | |
console.log(deger1); | |
/** | |
* Const Örnekleri | |
*/ |
OlderNewer