Topological field theory and rational curves