extract lesson into individual react component