Heat oil in a saucepan over a medium heat.
Add onion and cook for 5 minutes until softened.
Add garlic, ginger, dried shrimp, and spinach. Cook until spinach has wilted and liquid has evaporated, stirring occasionally.
Add rice, coconut milk, and salt. Transfer to a rice cooker and set to cook.
If you do not have a rice cooker, bring saucepan to a boil, cover, reduce heat to lowest setting and cook for 15 minutes.
Remove from heat. Place a folded tea towel under lid to absorb steam, and leave undisturbed for 10 minutes, then serve.