Skip to content

Commit

Permalink
Merge pull request #401 from Abolfazl2647/review-sync
Browse files Browse the repository at this point in the history
Review sync
  • Loading branch information
Abolfazl Rezvani Naraqi authored Feb 18, 2024
2 parents 8537993 + fc2dddd commit ad11cff
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/content/learn/thinking-in-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,8 @@ title: تفکر به سبک ری‌اکت

<Sandpack>

<<<<<<< HEAD
```jsx App.js
function ProductCategoryRow({category}) {
=======
```jsx src/App.js
function ProductCategoryRow({ category }) {
>>>>>>> bb3a0f5c10aaeba6e6fb35f31f36b47812ece158
return (
<tr>
<th colSpan="2">{category}</th>
Expand Down Expand Up @@ -342,13 +337,8 @@ function FilterableProductTable({ products }) {
<Sandpack>
<<<<<<< HEAD
```jsx App.js
import {useState} from 'react';
=======
```jsx src/App.js
import { useState } from 'react';
>>>>>>> bb3a0f5c10aaeba6e6fb35f31f36b47812ece158

function FilterableProductTable({products}) {
const [filterText, setFilterText] = useState('');
Expand Down Expand Up @@ -523,15 +513,6 @@ function FilterableProductTable({ products }) {
شما روی‌داد `onChange` را درون `SearchBar` اضافه خواهید کرد و استیت پدر را از آنجا تنظیم می‌کنید.
</p>
<<<<<<< HEAD
```js {5}
<input
type="text"
value={filterText}
placeholder="Search..."
onChange={(e) => onFilterTextChange(e.target.value)}
/>
=======
```js {4,5,13,19}
function SearchBar({
filterText,
Expand All @@ -552,21 +533,15 @@ function SearchBar({
type="checkbox"
checked={inStockOnly}
onChange={(e) => onInStockOnlyChange(e.target.checked)}
>>>>>>> bb3a0f5c10aaeba6e6fb35f31f36b47812ece158
```
<p dir="rtl">
حالا اپلیکیشن کار میکند !
</p>
<Sandpack>
<<<<<<< HEAD
```jsx App.js
import {useState} from 'react';
=======
```jsx src/App.js
import { useState } from 'react';
>>>>>>> bb3a0f5c10aaeba6e6fb35f31f36b47812ece158

function FilterableProductTable({products}) {
const [filterText, setFilterText] = useState('');
Expand Down

0 comments on commit ad11cff

Please sign in to comment.