0 like 0 dislike
1 view
in Bilgi Teknolojileri by anonymous Bilge (165k points)
react component

2 Answers

0 like 0 dislike
by anonymous Bilge (165k points)

Class component durum ve veri taşır. 

import React, {Component} from 'react';

class Customer extends Component {
    render() {
        return (
            <div>
                <form>
                    <input type="text"/>
                    <button>Gönder</button>
                </form>
            </div>
        );
    }
}
export default Customer;
0 like 0 dislike
by anonymous Bilge (165k points)

Funtional componentler değişen unsurlara sahip olmayan componentlerdir. Bar buna örnek olabilir.

import React from "react";

function BarMenu(){
    return (
        <div>
            <h3>BarMenu</h3>
        </div>
    )
}
export default BarMenu;
...