Magic - Box Implemented a magic box in React JS using class based components. Magic box is a 3-level pyramid of squares that accepts input as a number and gives correct output if the upper level square is a sum of two squares of its preceding level .