Skip to content

resolved some issues #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import withLogger from "./withLogger";

const Component = ({ message }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

const withLogger = (WrappedComponent) => {
return (props) => {
console.log(`Rendering ${WrappedComponent.name} with props:`, props);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { FixedSizeList } from "react-window";
const VirtualizationExample = () => {
const Row = ({ index, style }) => <div style={style}>Row {index}</div>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";

function IfElseExample() {
const [isLoggedIn, setIsLoggedIn] = useState(false);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

function KeyPropExample() {
const items = [
{ id: 1, name: "Apple" },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

function ListExample() {
const items = ["Apple", "Banana", "Cherry", "Date"];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";

function TernaryOperatorExample() {
const [isError, setIsError] = useState(false);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component } from "react";
import { Component } from "react";

class Counter extends Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

function WelcomeMessage() {
return <div>Welcome to React!</div>;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";

function FormComponent() {
const [formData, setFormData] = useState({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import { useState } from 'react';

function ChangeEventExample() {
const [value, setValue] = useState('');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";

function ComplexStateExample() {
const [user, setUser] = useState({ name: "Ajay", age: 24 });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import { useState } from 'react';

function SubmitEventExample() {
const [value, setValue] = useState('');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { ThemeProvider } from "./ThemeContext";
import Header from "./Header";
import Content from "./Content";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext } from "react";
import { useContext } from "react";
import { ThemeContext } from "./ThemeContext";

function Content() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext } from "react";
import { useContext } from "react";
import { ThemeContext } from "./ThemeContext";

function Header() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { connect } from "react-redux";

function Counter({ count, increment, decrement }) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { Provider } from "react-redux";
import store from "./store";
import Counter from "./Counter";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { createContext, useState } from "react";
import { createContext, useState } from "react";

const ThemeContext = createContext();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";
import ParentComponent from "./ParentComponent";

function App() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import ChildComponent from "./ChildComponent";

function ParentComponent({ count, incrementCount }) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";
import TodoList from "./TodoList";

function TodoApp() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import TodoItem from "./TodoItem";

function TodoList({ todos, toggleTodo }) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import { useState, useEffect } from "react";

function UserList() {
const [users, setUsers] = useState([]);
Expand Down
7 changes: 0 additions & 7 deletions src/components/TeamProfileCards/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React, { type ReactNode } from "react";
import Translate from "@docusaurus/Translate";
import Link from "@docusaurus/Link";
Expand Down
1 change: 0 additions & 1 deletion src/pages/helloReact.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Layout from '@theme/Layout';

export default function Hello() {
Expand Down
1 change: 0 additions & 1 deletion src/theme/Admonition/Layout/Types.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import DefaultAdmonitionTypes from '@theme-original/Admonition/Types';

function MyCustomAdmonition(props) {
Expand Down
1 change: 0 additions & 1 deletion src/theme/Admonition/Layout/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import clsx from 'clsx';
import {ThemeClassNames} from '@docusaurus/theme-common';
import styles from './styles.module.css';
Expand Down