Skip to content

Commit

Permalink
chore: delete react template warning code (#2041)
Browse files Browse the repository at this point in the history
* chore: delete react template warning code

* chore: add changeset
  • Loading branch information
klren0312 authored Jan 3, 2025
1 parent d1a3e3f commit 5c65600
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-tips-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-farm": patch
---

chore: delete react template warning code
3 changes: 1 addition & 2 deletions crates/create-farm-rs/templates/react/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import { Main } from './main';
import './index.css'


const container = document.querySelector('#root');
const container = document.querySelector('#root') as Element;
const root = createRoot(container);

root.render(<Main />);
8 changes: 4 additions & 4 deletions crates/create-farm-rs/templates/react/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from "react";
import "./main.css";
import reactLogo from "./assets/react.svg";
import FarmLogo from "./assets/logo.png";
import { useState } from 'react';
import './main.css';
import reactLogo from './assets/react.svg';
import FarmLogo from './assets/logo.png';
export function Main() {
const [count, setCount] = useState(0);

Expand Down

0 comments on commit 5c65600

Please sign in to comment.