Repository navigation
composurejs@0.2.0
Minor Changes
-
#21
11678d0Thanks @BlueFrog130! - The placement check follows function components: a tag passed to one is checked against the parent it puts its children in (<Button> cannot go inside <Container> (in <ui.Primary>)), and what one renders against where it is placed ((rendered by <Card>)). Function components are followed in the module and through relative imports and re-exports;checkPlacementtakes{ file, load }for the latter. The lint rule reads imported modules from disk (@composurejs/eslint-pluginnow depends onoxc-parser), andvite devre-checks a module when one it followed changes. -
#21
aaacd5eThanks @BlueFrog130! - A local function is now an Inline Handler:const add = (c) => ..(orfunction add(c) {..}) in a component, named byonClick/onSelect/onSubmit, is hoisted with what it captures and stays callable. A hoisted handler that reads a function declared inside a function is now a compile error naming it, instead of failing at render.