Strong rip currents tend to lure people in because they create a false calm in the surf. When present, these powerful ‘rivers of water’ are a danger to all beach goers because they can easily pull objects, and people, out beyond the breakers…
The most important thing is to calm. The second thing is don’t swim against the rip. The best thing to do is lie on your back and float. This will allow you to conserve energy. While you’re floating, raise one arm and call out to seek help. If you’re a confident swimmer, try swimming parallel to the beach towards breaking waves, and out of the rip.
Spend time learning about rip currents by following this link: https://www.nsri.org.za/2018/06/beware-of-rip-currents/
If you have the time, this article is also worth reading: https://www.theage.com.au/interactive/2018/how-to-spot-a-rip/