Flower-like SnS2 composite with 3D pyrolyzed bacterial cellulose as the anode for lithium-ion batteries with ultralong cycle life and superior rate capability.