This dap example is inspired by React tutorial. Press Ctrl+U to see the source code.