mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Initial Commit (#4358)
This commit is contained in:
@@ -14,7 +14,7 @@ interface YouWillLearnCardProps {
|
||||
|
||||
function YouWillLearnCard({title, path, children}: YouWillLearnCardProps) {
|
||||
return (
|
||||
<div className="flex flex-col h-full bg-card dark:bg-card-dark shadow-inner justify-between rounded-lg pb-8 p-6 xl:p-8">
|
||||
<div className="flex flex-col h-full bg-card dark:bg-card-dark shadow-inner justify-between rounded-lg pb-8 p-6 xl:p-8 mt-3">
|
||||
<div>
|
||||
<h4 className="text-primary dark:text-primary-dark font-bold text-2xl leading-tight">
|
||||
{title}
|
||||
|
||||
@@ -52,7 +52,7 @@ Declares a ref.
|
||||
|
||||
```js
|
||||
function MyComponent() {
|
||||
const inputRef = useState(null);
|
||||
const inputRef = useRef(null);
|
||||
// ...
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user