So, I unwrapped my object. Then I created an image file with a certain color. In Principled BSDF node I added the option image texture and loaded the image.
In UV editor, I loaded the saved image. The base color of the image showed. But now I painted the object in Texture Paint mode it doesn't show up in object but shows up in the image in the UV Editor.
Can anyone please tell me what can be gone wrong??