aidenybai / million

Optimize React performance and make your React 70% faster in minutes, not months.
https://million.dev
MIT License
16.26k stars 574 forks source link

bug: https://millionjs.org/docs/start-here #174

Closed wwog closed 2 years ago

wwog commented 2 years ago

https://millionjs.org/docs/start-here
Error in sample code in Building a search input

const search = (query) => {
  update(entries.filter((entry) => entry.toLowerCase().includes(query)));//It should be all lowercase
};
aidenybai commented 2 years ago

Hi, could you give a more detailed explanation of the error, a reproduction procedure, and intended behavior?

aidenybai commented 2 years ago

I think I understand now. The docs have been updated with the new content.

const search = (query) => {
  update(entries.filter((entry) => entry.toLowerCase().includes(query.toLowerCase())));
};