That's a really good question but it might be helpful to point out that when it says in John 3:16 "...God so loved the world", it's followed by a "that..." Read the whole sentence and we learn that his great love caused him to send his only-begotten Son into this world to be born as a human baby, who was to grow up and sacrificially die in order for sin and death to be dealt with God's way.
But your question is actually about how we can love the world the same way that Jesus loved the world. The answer to that is that the Son of God agreed to be sent into this sinful world, lowering himself from his great position in the Godhead, to become despised, to become a servant, to suffer and also to be tortured to death. All because of the immense love of the Father and the Son for fallen humanity. Therefore, for us to love as Jesus loved, we need to be willing to be sent by the Father to do his will, here below. We need to shove aside our own desires, our own ideas of our importance or our station in life. We need to be, to do, and to go entirely according to Jesus' injunction to his followers:
"Seek first the kingdom of God and his righteousness, and all these
things will be added to you" (Matthew 6:33).
We can only love as Jesus loved if we have that degree of faith, and love him as our Lord, our Saviour, and the King of God's kingdom. Then we will follow the King wherever he leads. We will show all those we meet along the way that spirit of Christ, which indwells all believers (Romans 8:9). We will point others to Christ, not ourselves, and we will do that by word and by deed. That is how to show Christ-like love to the people in the world.
EDIT - Another important statement of Jesus related to what loving the world does NOT mean, is Jesus' prayer where he said:
"I pray not for the world, but for them which thou hast given me; for
they are thine, and all mine are thine; and I am glorified in them."
Christians likewise do not pray for the world, but for the salvation of those yet in the world who are called to come out, and for all fellow-believers.