Expand description
§use-solid
SolidJS metadata primitives for RustUse.
§Experimental
use-solid is experimental while use-js remains below 0.3.0.
§Example
use use_solid::{SolidComponentName, SolidPrimitiveKind, SolidSignalName};
let component = SolidComponentName::new("CounterPanel")?;
let signal = SolidSignalName::new("count")?;
assert_eq!(component.as_str(), "CounterPanel");
assert_eq!(signal.as_str(), "count");
assert_eq!(SolidPrimitiveKind::Signal.as_str(), "signal");§Scope
SolidJScomponent, signal, file-kind, primitive-kind, and JSX runtime metadata.- Lightweight component and signal name validation.
§Non-goals
- Reactivity implementation.
- JSX parsing.
- Runtime behavior.
§License
Licensed under either Apache-2.0 or MIT.
Structs§
- Solid
Component Name - Validated
SolidJScomponent name metadata. - Solid
Signal Name - Validated
SolidJSsignal name metadata.
Enums§
- Solid
File Kind SolidJSfile-kind labels.- Solid
JsxRuntime SolidJSJSX runtime labels.- Solid
Name Error - Error returned when
SolidJSmetadata is invalid. - Solid
Primitive Kind SolidJSprimitive-kind labels.