Why is React not displaying any data?

Why is React not displaying any data?

I would like to display this on the page:

import React, { Component } from 'react';
import axios from 'axios';

I would like to display this on the page:

class ProjectDeatil extends Component {

constructor(props) { super(props);

this.state = { user: { name: '' } }; }

.

componentDidMount() {

const { match: { params } } = this.props;

axios.get(http://localhost:8000/api/project/${params.pk}) .then(({ data: user }) => { console.log( user);

this.setState({"User:": user });

}); }

I added her const

 render() {
     const{ user } = this.state;
return (

Then I tried displaying it again and it still didn't work

 <div className="col-md-4 text-white   animated fadeInUp delay-2s if " >
 <h1>{user.title}</h1>
 <h1> Hello Dear</h1>
 </div>

I also tried using django rest api and that also didn't work.

    </div>

); }
} export default ProjectDeatil


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Python Django Tutorial | Django Course

🔥Intellipaat Django course: https://intellipaat.com/python-django-training/ 👉This Python Django tutorial will help you learn what is django web development &...

Why ReactJS is better for Web Application Development?

Web Application Development is the point of contact for a business in today's digital era. It is important to choose the right platform for Web Application Development to build a high end Web

How to Integrate Django to any Javascript Front End // Django to React // Django to Angular

Learn the basic technique to Integrate Django to any Javascript Front End // Django to React // Django to Angular