Me learning react like an absolute chungus
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import * as react from 'react'
-
- type HeaderProps = {
- addColumn: () => void
- }
- const Header = ( props: HeaderProps ) => {
-
-
-
- return(
- <div className="header" style= {{backgroundColor: 'grey', height: 60 }}>
- <button> Add task </button>
- <button onClick={props.addColumn}> Add column </button>
- </div>
- )
- }
- export default Header
|