<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Component - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/component/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Thu, 25 Aug 2022 10:20:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>React Router v6后如何在Component中获取参数</title>
		<link>https://www.coder4.com/archives/7771</link>
					<comments>https://www.coder4.com/archives/7771#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Thu, 25 Aug 2022 10:19:56 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[React Router]]></category>
		<category><![CDATA[v6]]></category>
		<category><![CDATA[参数]]></category>
		<guid isPermaLink="false">https://www.coder4.com/?p=7771</guid>

					<description><![CDATA[答案：试过各种方案，都很复杂，不行，只能用hook。 除了把Component改造成FC，还有个方案是自己包一层FC： MyWrapper： import { useParams } from 'react-router-dom'; import YourComponent from './YourComponent '; function MyWrapper() { const { id } = useParams(); return ([......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/7771/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
