-1

I would like to use the Django naturaltime functionality from the humanize package, or something similar, in my React frontend.

Here is my current code:

<p>
     <b>
        {user.username} {post.created_at}
    </b>
</p>

Here is what I'm currently getting:

enter image description here

And here is what I'd like to get:

enter image description here

I appreciate any help - thank you in advance!

logan
  • 15
  • 5

1 Answers1

0

I ended up using the react-moment package to solve this issue.

logan
  • 15
  • 5