This content originally appeared on DEV Community and was authored by Nitzan Hen
Agrippa is growing steadily - it's been out for a little over two months, and already has a small community around it! ππ
If you're not using Agrippa yet, get started here. If you are using Agrippa, thanks for being part of the community! Let us know what you think about it, here or elsewhere.
Either way, these are the changes introduced in v1.2.0:
In general, the two main changes brought about in v1.2.0 are more options, this time with a focus on supporting different structural conventions that exist among React developers.
Most notably, you can now:
- export a component as a default export (instead of a named export)
- declare a component as a
function()
declaration (instead of as aconst
with an arrow function) - create
memo()
components.
These changes came as part of a larger reform in component generation. Generation logic was remade from the ground up - instead of a large, unwieldy template, we now have proper composition patterns and a ComponentComposer
; internal terminology aside, this reform makes it much easier to scale, maintain and test the generation logic.
Following this reform, we have begun the process of writing standardized tests - testing for some of the core code already exists, and the rest will be covered in the soon future.
In parallel, we got some bonus enhancements - the API docs were rewritten and are now both comprehensive and easy to read, and Agrippa will also now search for a new version when run, so that you'll always be informed when a new version is available.
You can also find this information at the release page.
That's pretty much it! We already have some ideas for v1.3.0 - we're currently looking into adding support for styled-components, React native Stylesheets
and Mui 5
styling, writing more tests and more.
Join the community! If you haven't, try Agrippa out, and if you find a bug in Agrippa or want to suggest a new feature, please reach out here or on GitHub.
Thanks for your time, have a great day!
This content originally appeared on DEV Community and was authored by Nitzan Hen
Nitzan Hen | Sciencx (2021-10-21T08:42:10+00:00) Agrippa 1.2 is out ππ. Retrieved from https://www.scien.cx/2021/10/21/agrippa-1-2-is-out-%f0%9f%8e%89%f0%9f%8e%89/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.