Commit ed67bb21 authored by mirree's avatar mirree
Browse files

Rewrote Header to a function

parent 12abace7
import React from 'react';
import MiddlePart from './components/MiddlePart';
import Header from './components/header';
import Header from './components/Header';
import './App.css';
function App() {
......
import React, {Component} from 'react';
import React from 'react';
class Header extends Component {
render() {
return (
<div className="header" id="header"
ref={a => this._acc = a} >
Awesome art collections!
</div>
)
}
function Header(){
return (
<div className="header" id="header">
Awesome art collections!
</div>
)
}
export default Header;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment