I'm having trouble to convert a class based component, using Redux to use function and hooks.
I'm getting

> 
> Cannot read property 'props' of undefined
> 
> 
> 

This is my actual code:

```
import React from 'react';

import { connect } from 'react-redux'; 

function App() {
  const { newValue } = this.props;
  return (
    <div className="App" style={{ paddingTop: '10px' }}>
      <input type="text" />
      <button>Click me!</button>
      <h1>{newValue}</h1>
    </div>
  );
}

const mapStateToProps = store => ({
  newValue: store.clickState.newValue
});

export default connect(mapStateToProps)(App);

```

If i change `function App()` to `class App extends Component` and put my `const { newValue } = this.props;` inside `render()` method, it works just fine. But with `function App()` only i still getting errros.