This question is a great opportunity to talk about state symbols, ionic bonding, and multi-step reactions. Very often when we write an equation for a chemical reaction we only look at the starting material and the products, like when you wrote the first form: $$\ce{CO2 + NaOH (aq) -> NaHCO3 (aq)}$$ More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.