arrow_back返回时刻时间线

When I'm not too busy, I quietly read te… · Zhengzhou · Moments

Binyang

When I'm not too busy, I quietly read technical books. In the process, I feel my comprehension increase. Areas I hadn't noticed or wasn't solid on get supplemented.

Step-by-step tutorials make it easy to focus and immerse yourself. Writing tutorials also requires a strong ability to break down and organize knowledge.

jsx
function Echo() {
  const params = useParams();
  const [searchParams] = useSearchParams();
  return <h1>{params.msg || searchParams.get("msg")}</h1>;
}
jsx
const param = "From Param";
const query = new URLSearchParams({ msg: "From Query" });

export default function App() {
  return (
    <section>
      <p>
      </p>
      <Link to={'echo/${param}'}>Echo param</Link>
       <p>
       </p>
    </section>
    <Link to={'echo?${query.toString()}'}>Echo query</Link>
  );
}

SHARE

Share

Share this moment.