简体   繁体   中英

refresh a page after upgrade react and next latest version got re-hydration error ?give any possible way to fix this issue?

Unhandled Runtime Error Error: Hydration failed because the initial UI does not match what was rendered on the server

            <div>
                <p>
                    Gender : <span >{gender}</span>
                </p>
                <p>
                    Age : <span>{age} Yrs</span>
                </p>
            </div>
            <div>
                <p>
                    Question: <span>{question}</span>
                </p>
            </div>
        </>
replace a paragraph tag inside div but is doesn't work for me






replace h elements inside div

                                    <h2 >
                                        John Deo
                                    </h2>                         
                                    <p> Iterative approaches to corporate strategy foster collaborative thinkingorporate strategy foster collaborative thinking
                                    </p>
                                </div>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM