![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@thisbeyond/solid-select
Advanced tools
Install it:
npm install @thisbeyond/solid-select
Use it:
import { Select } from "@thisbeyond/solid-select";
import "@thisbeyond/solid-select/style.css";
const App = () => {
return (
<div>
<Select options={["apple", "banana", "pear", "pineapple", "kiwi"]} />
</div>
);
};
export default App;
See more examples at https://solid-select.com
Select
component that can be configured with either a
static or dynamic list of options.createOptions
helper for configuring filterable options based on input
value (complete with match highlighting). Works with lists of plain strings or
can be passed a 'key' to filter against lists of objects. Can also be used to
configure creating new options on the fly.createSelect
primitive if you just want the core logic.I've been part of the SolidJS community for a while now and one of the things I really like is the emphasis on trying things out and sharing them (https://hack.solidjs.com). The ecosystem is small which creates a lot of opportunity and a lower barrier to entry for sharing I find.
I published my first Solid library (https://solid-dnd.com) a short while back as
a first dabble in sharing what I had learnt on a personal project. That went
well so when I had to create a multi-select autocomplete control for another
personal project I knew I'd be sharing that too - and so Solid Select
came to
be :)
[0.14.0] - 2023-04-09
A major refactor to more clearly separate out the core and the builtin
components. The builtin Select
and accompanying component interfaces remains
unchanged, but there are backwards incompatible changes to the createSelect
interface.
Breaking Change Streamline the core and allow greater control in
components. No longer pass or use element refs in the core, including not
automatically settign up event handlers. Instead, return commonly useful
handlers (such as onKeyDown
) from createSelect
for use in components.
Breaking Change Expose signals directly as accessors rather than hiding
behind property getters in return of createSelect
. For example,
select.options
should now be select.options()
. This more closely matches
SolidJS and avoids inconsistency around not being able to set properties
directly.
Breaking Change Remove helpers (such as open
and close
) in favour of
exposing setters (e.g. setIsOpen
) consistently from createSelect
. This
provides a more intuitive interface rather than some aspects having helpers
and others not.
Breaking Change Refactor Select
components to make use of a shared
Context
providing the created select. Avoid unnecessary prop drilling and
make it easier to others to compose their own selects (with useSelect
).
Breaking Change Make createAsyncOptions
throttle by default. The fetcher
will be called every 250ms by default to prevent excessive calls to resources.
The threshold can be configured or removed by passing a second argument - e.g.
createAsyncOptions(fetcher, 0)
for original behaviour.
Hide the input caret with CSS rather than hide the entire input component to make some logic easier (such as focus handling).
FAQs
The Select component for Solid.
The npm package @thisbeyond/solid-select receives a total of 1,678 weekly downloads. As such, @thisbeyond/solid-select popularity was classified as popular.
We found that @thisbeyond/solid-select demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.