I learned that connected components are always closed, but path-components are not necessarily closed.
I know the following fact
1.A path-component is maximum path-connected subset (including a point in the subset)
I finally got the conclusion that I've got to find an example that $B$ is path-connected but $\bar B$ is not path-connected
can you give me an example as simple as possible?