DEV Community

Discussion on: How to add a dynamic title on your React app

Collapse
 
sistemassouza profile image
Denis Souza • Edited

I have is problem

TypeError: Cannot call a class as a function

my code

thepracticaldev.s3.amazonaws.com/i...

Collapse
 
luispa profile image
LuisPa • Edited

Hi! Please put here the code from the withTitle() method, please.

You can see the example repo:

github.com/LuisPaGarcia/react-dyna...

Collapse
 
sistemassouza profile image
Denis Souza • Edited

Here my code

thepracticaldev.s3.amazonaws.com/i...

I did find problem

I only did change extends Component to extens React.Component at the TitleComponent

thanks

Thread Thread
 
luispa profile image
LuisPa

Great!