React version of add section for todo
Worked on react version