An ultra-small few-layer MoS2-hierarchical porous carbon fiber composite obtained via nanocasting synthesis for sodium-ion battery anodes with excellent long-term cycling performance.