Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Jan 8, 2025
1 parent 3efda18 commit 97840ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kitchen-sink/src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { scan } from 'react-scan/dist/index.mjs'; // force production build
import React, { useState, createContext } from 'react';
import React, { createContext, useState } from 'react';
import ReactDOMClient from 'react-dom/client';
import { scan } from 'react-scan/dist/index.mjs'; // force production build

import './styles.css';

Expand Down Expand Up @@ -95,7 +95,7 @@ export const AddTaskBar = ({ onCreate }) => {

const handleCreate = () => {
if (value.length === 0) return;
onCreate({ id, text: `${value} (${id})` });
onCreate({ id: `item-${id}`, text: `${value} (${id})` });
setValue('');
setId(id + 1);
};
Expand Down

0 comments on commit 97840ec

Please sign in to comment.