Solid-state reaction has been widely adopted as a low-cost and scalable approach to synthesize inorganic materials for industrial applications. However, a special caution must be paid to carefully control the synthesis condition in order to obtain final products with desired structure and physical/chemical properties. In this work, LiCoO2 was investigated as a model material to illustrate the complexity of the solid-state reaction, as well as its condition control. Taking the advantage of the high flux and high penetration capability of synchrotron X-ray source, in-situ high-energy X-ray diffraction was deployed to investigate the structural evolution of materials during the solid-state reaction while ex-situ high-resolution X-ray diffraction was utilized to quantify the residual microstrains of LiCoO2. It is shown that the microstrain is a sensitive indicator to probe the completeness of the solid-state reactions, and that it also provides a more quantitative way to establish the structure-property relationship of materials. It can serve as a sensitive indicator for the rational design of synthesis process for functional materials.