Solid.js - następca Reacta?

Brainhub
BrainhubBrainhub
Solid.js - następca Reacta?
Whoami
1. Software developer @brainhub
2. Cat (Cheetos) father
3. Netflix lover
4. Football player
@hstemplewski
@hstemplewski
Agenda
1. What the Solid is?
2. Quick overview
3. Solid vs React
a. Components
b. Performance
c. Build size
4. Live coding (refactor react app to solid)
5. Is Solid gonna replace React?
Disclaimer
This presentation could include a lot of cat GIFs
and memes, if you’re not ready, please leave this
room or close your eyes and only listen.
1. What the Solid is?
SolidJS is an open source, reactive declarative JavaScript library with an
API similar to React. It was created by Ryan Carniato in 2018 and reached
the stable v1.0 version in 2021.
➔ JSX Support
In SolidJS, components are JavaScript functions that return JSX just
like in React.
➔ Reactive
Unlike React, SolidJS doesn't use a virtual DOM. Instead, templates
are compiled down to real DOM nodes and updated with reactions.
When state changes, only the code that depends on it will rerun.
➔ Blazingly fast
In comparison to different JS libraries (not only React) Solid is faster
than
2. Quick overview
➔ Components
➔ Reactivity
➔ State management
Components
Components in solid are more
about creating boundaries,
they’re just a functions which are
doing nothing
Special
components
● For
● Show
● Switch/Match
● and much more
https://www.solidjs.com/docs/latest/ap
i#control-flow
Like MobX, Vue and Svelte, Solid
uses reactive variables, which are
monitored for change. It allows
us to not bother about
dependencies array and react on
every variable change.
Reactivity
Long story short,
how reactivity
works
● Getter - get value and return
newest value, set subscribers
● Setter - set new value and run all
subscribers which needs to
update a value after
● Cleanup - it’s not included here,
but we need to be sure we
removed unnecessary
subscribers
● This is simple example and it
shouldn't be used as production
code.
State management in Solid is
everywhere. As you create signal
it may be everywhere in the app
and whenever you will use it it
will stay reactive.
https://youtu.be/ZZ-a7B761Ds?t=2456
State
management EXAMPLE !
Solid vs React
Comparison - components
Comparison - effects
Effects that developers create with
createEffect run after rendering has
completed and are mostly used for
scheduling updates that interact with
the DOM. If you want to modify the
DOM earlier, use createRenderEffect.
Comparison - general
React Solid
Components are connected with
functionality.
Components are just for creating
“boundaries”.
Need to pass explicitly dependencies and
react on changes.
Using reactivity it automagically reacts on
changes.
VDOM Not using VDOM, it’s compiled to JS
Need to use external libraries for managing
global state.
It allows you to create state using built-in
API, but still you can use external things.
Quite big and slow Blazingly fast and small
Vast community, great support Small community, limited support
Performance
Performance
Performance
Build size
Build size
Live coding!
Trend
Trend
State of JS
Is Solid gonna replace React?
First of all it’s always worthy to try the new things, as a developers we cannot close our
minds and rest on our laurels. Even if React will still stay strong and stay first choose for
most developers do not be afraid to dig deeper into new solutions and ideas. Solid have a
chance to change something, but amount of community, marketing and now not being
enterprise solution not make it easier. Answering the question, I don’t think Solid will replace
React, it owns a vast market, has big community support and is supported by huge company.
Right now Solid is just an open-source library based on contributions.
Need to check:
● https://www.youtube.com/watch?v=_ne2BsvFBH0&ab_channel=KevinGhadyani-JavaScript
● https://dev.to/ryansolid/building-a-reactive-library-from-scratch-1i0p
● https://dev.to/ryansolid/thinking-granular-how-is-solidjs-so-performant-4g37
● https://levelup.gitconnected.com/finding-fine-grained-reactive-programming-89741994ddee
● https://github.com/solidjs/solid
● https://www.solidjs.com/docs/latest/api
1 of 26

Recommended

Solid js by
Solid jsSolid js
Solid jsjonathanfmills
981 views63 slides
Portas logicas by
Portas logicasPortas logicas
Portas logicasReginaldo Steinhardt
2.8K views5 slides
SAP API Management and API Business Hub (TechEd Barcelona) by
SAP API Management and API Business Hub (TechEd Barcelona)SAP API Management and API Business Hub (TechEd Barcelona)
SAP API Management and API Business Hub (TechEd Barcelona)Harsh Jegadeesan
2.9K views23 slides
Funny riddles for you by
Funny riddles for youFunny riddles for you
Funny riddles for youAnh Nguyet Diep
5.1K views9 slides
React native by
React nativeReact native
React nativeNexThoughts Technologies
179 views47 slides
React Js Simplified by
React Js SimplifiedReact Js Simplified
React Js SimplifiedSunil Yadav
344 views30 slides

More Related Content

Similar to Solid.js - następca Reacta?

Reactjs Vs React Native – Key Difference, Advantages, And Disadvantages by
Reactjs Vs React Native – Key Difference, Advantages, And DisadvantagesReactjs Vs React Native – Key Difference, Advantages, And Disadvantages
Reactjs Vs React Native – Key Difference, Advantages, And DisadvantagesAndolasoft Inc
66 views7 slides
Learn reactjs, how to code with example and general understanding thinkwik by
Learn reactjs, how to code with example and general understanding   thinkwikLearn reactjs, how to code with example and general understanding   thinkwik
Learn reactjs, how to code with example and general understanding thinkwikHetaxi patel
43 views12 slides
Welcome to React & Flux ! by
Welcome to React & Flux !Welcome to React & Flux !
Welcome to React & Flux !Ritesh Kumar
548 views28 slides
JOSA TechTalks - Better Web Apps with React and Redux by
JOSA TechTalks - Better Web Apps with React and ReduxJOSA TechTalks - Better Web Apps with React and Redux
JOSA TechTalks - Better Web Apps with React and ReduxJordan Open Source Association
399 views91 slides
Better web apps with React and Redux by
Better web apps with React and ReduxBetter web apps with React and Redux
Better web apps with React and ReduxAli Sa'o
203 views91 slides
React Native - Build Native Mobile App by
React Native - Build Native Mobile AppReact Native - Build Native Mobile App
React Native - Build Native Mobile AppMobio Solutions
316 views27 slides

Similar to Solid.js - następca Reacta?(20)

Reactjs Vs React Native – Key Difference, Advantages, And Disadvantages by Andolasoft Inc
Reactjs Vs React Native – Key Difference, Advantages, And DisadvantagesReactjs Vs React Native – Key Difference, Advantages, And Disadvantages
Reactjs Vs React Native – Key Difference, Advantages, And Disadvantages
Andolasoft Inc66 views
Learn reactjs, how to code with example and general understanding thinkwik by Hetaxi patel
Learn reactjs, how to code with example and general understanding   thinkwikLearn reactjs, how to code with example and general understanding   thinkwik
Learn reactjs, how to code with example and general understanding thinkwik
Hetaxi patel43 views
Welcome to React & Flux ! by Ritesh Kumar
Welcome to React & Flux !Welcome to React & Flux !
Welcome to React & Flux !
Ritesh Kumar548 views
Better web apps with React and Redux by Ali Sa'o
Better web apps with React and ReduxBetter web apps with React and Redux
Better web apps with React and Redux
Ali Sa'o203 views
React Native - Build Native Mobile App by Mobio Solutions
React Native - Build Native Mobile AppReact Native - Build Native Mobile App
React Native - Build Native Mobile App
Mobio Solutions316 views
9 reasons why programmers should learn react native by React Sharing
9 reasons why programmers should learn react native9 reasons why programmers should learn react native
9 reasons why programmers should learn react native
React Sharing351 views
The ultimate guide to optimize your react native app performance in 2022 by Katy Slemon
The ultimate guide to optimize your react native app performance in 2022The ultimate guide to optimize your react native app performance in 2022
The ultimate guide to optimize your react native app performance in 2022
Katy Slemon101 views
GITS Class #20: Building A Fast and Responsive UI in React Native by GITS Indonesia
GITS Class #20: Building A Fast and Responsive UI in React NativeGITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React Native
GITS Indonesia176 views
Creating books app with react native by Ali Sa'o
Creating books app with react nativeCreating books app with react native
Creating books app with react native
Ali Sa'o2.6K views
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages by Techtic Solutions
ReactJS Vs React Native: Understanding Differences, Advantages, DisadvantagesReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
Techtic Solutions780 views
Introduction to react native with redux by Mike Melusky
Introduction to react native with reduxIntroduction to react native with redux
Introduction to react native with redux
Mike Melusky399 views
Nagios Conference 2012 - Nathan Vonnahme - Monitoring the User Experience by Nagios
Nagios Conference 2012 - Nathan Vonnahme - Monitoring the User ExperienceNagios Conference 2012 - Nathan Vonnahme - Monitoring the User Experience
Nagios Conference 2012 - Nathan Vonnahme - Monitoring the User Experience
Nagios1.8K views
Native script vs react native for native app development in 2022 by Katy Slemon
Native script vs react native for native app development in 2022Native script vs react native for native app development in 2022
Native script vs react native for native app development in 2022
Katy Slemon58 views

More from Brainhub

Konfiguracja GitLab CI/CD pipelines od podstaw by
Konfiguracja GitLab CI/CD pipelines od podstawKonfiguracja GitLab CI/CD pipelines od podstaw
Konfiguracja GitLab CI/CD pipelines od podstawBrainhub
131 views11 slides
Struktury algebraiczne w JavaScripcie by
Struktury algebraiczne w JavaScripcieStruktury algebraiczne w JavaScripcie
Struktury algebraiczne w JavaScripcieBrainhub
59 views71 slides
WebAssembly - czy dzisiaj mi się to przyda do pracy? by
WebAssembly - czy dzisiaj mi się to przyda do pracy?WebAssembly - czy dzisiaj mi się to przyda do pracy?
WebAssembly - czy dzisiaj mi się to przyda do pracy?Brainhub
46 views29 slides
Ewoluowanie neuronowych mózgów w JavaScript, wielowątkowo! by
Ewoluowanie neuronowych mózgów w JavaScript, wielowątkowo!Ewoluowanie neuronowych mózgów w JavaScript, wielowątkowo!
Ewoluowanie neuronowych mózgów w JavaScript, wielowątkowo!Brainhub
44 views60 slides
Go home TypeScript, you're drunk! by
Go home TypeScript, you're drunk!Go home TypeScript, you're drunk!
Go home TypeScript, you're drunk!Brainhub
580 views17 slides
How I taught the messenger to tell lame jokes by
How I taught the messenger to tell lame jokesHow I taught the messenger to tell lame jokes
How I taught the messenger to tell lame jokesBrainhub
223 views88 slides

More from Brainhub(20)

Konfiguracja GitLab CI/CD pipelines od podstaw by Brainhub
Konfiguracja GitLab CI/CD pipelines od podstawKonfiguracja GitLab CI/CD pipelines od podstaw
Konfiguracja GitLab CI/CD pipelines od podstaw
Brainhub131 views
Struktury algebraiczne w JavaScripcie by Brainhub
Struktury algebraiczne w JavaScripcieStruktury algebraiczne w JavaScripcie
Struktury algebraiczne w JavaScripcie
Brainhub59 views
WebAssembly - czy dzisiaj mi się to przyda do pracy? by Brainhub
WebAssembly - czy dzisiaj mi się to przyda do pracy?WebAssembly - czy dzisiaj mi się to przyda do pracy?
WebAssembly - czy dzisiaj mi się to przyda do pracy?
Brainhub46 views
Ewoluowanie neuronowych mózgów w JavaScript, wielowątkowo! by Brainhub
Ewoluowanie neuronowych mózgów w JavaScript, wielowątkowo!Ewoluowanie neuronowych mózgów w JavaScript, wielowątkowo!
Ewoluowanie neuronowych mózgów w JavaScript, wielowątkowo!
Brainhub44 views
Go home TypeScript, you're drunk! by Brainhub
Go home TypeScript, you're drunk!Go home TypeScript, you're drunk!
Go home TypeScript, you're drunk!
Brainhub580 views
How I taught the messenger to tell lame jokes by Brainhub
How I taught the messenger to tell lame jokesHow I taught the messenger to tell lame jokes
How I taught the messenger to tell lame jokes
Brainhub223 views
The hunt of the unicorn, to capture productivity by Brainhub
The hunt of the unicorn, to capture productivityThe hunt of the unicorn, to capture productivity
The hunt of the unicorn, to capture productivity
Brainhub106 views
TDD in the wild by Brainhub
TDD in the wildTDD in the wild
TDD in the wild
Brainhub128 views
WebAssembly - kolejny buzzword, czy (r)ewolucja? by Brainhub
WebAssembly - kolejny buzzword, czy (r)ewolucja?WebAssembly - kolejny buzzword, czy (r)ewolucja?
WebAssembly - kolejny buzzword, czy (r)ewolucja?
Brainhub106 views
React performance by Brainhub
React performanceReact performance
React performance
Brainhub196 views
Introduction to RxJS by Brainhub
Introduction to RxJSIntroduction to RxJS
Introduction to RxJS
Brainhub3.7K views
React Native in a nutshell by Brainhub
React Native in a nutshellReact Native in a nutshell
React Native in a nutshell
Brainhub719 views
Ant Colony Optimization (Heuristic algorithms & Swarm intelligence) by Brainhub
Ant Colony Optimization (Heuristic algorithms & Swarm intelligence)Ant Colony Optimization (Heuristic algorithms & Swarm intelligence)
Ant Colony Optimization (Heuristic algorithms & Swarm intelligence)
Brainhub951 views
Technologia, a Startup - Brainhub by Brainhub
Technologia, a Startup - BrainhubTechnologia, a Startup - Brainhub
Technologia, a Startup - Brainhub
Brainhub441 views
Introduction to GraphQL by Brainhub
Introduction to GraphQLIntroduction to GraphQL
Introduction to GraphQL
Brainhub3.3K views
How should you React to Redux by Brainhub
How should you React to ReduxHow should you React to Redux
How should you React to Redux
Brainhub3.8K views
Wprowadzenie do React by Brainhub
Wprowadzenie do ReactWprowadzenie do React
Wprowadzenie do React
Brainhub787 views
JavaScript and Desktop Apps - Introduction to Electron by Brainhub
JavaScript and Desktop Apps - Introduction to ElectronJavaScript and Desktop Apps - Introduction to Electron
JavaScript and Desktop Apps - Introduction to Electron
Brainhub4.9K views
Why and How You Should Move from PHP to Node.js by Brainhub
Why and How You Should Move from PHP to Node.jsWhy and How You Should Move from PHP to Node.js
Why and How You Should Move from PHP to Node.js
Brainhub5.1K views
All you need to know about Callbacks, Promises, Generators by Brainhub
All you need to know about Callbacks, Promises, GeneratorsAll you need to know about Callbacks, Promises, Generators
All you need to know about Callbacks, Promises, Generators
Brainhub812 views

Recently uploaded

TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc
170 views29 slides
Business Analyst Series 2023 - Week 4 Session 7 by
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7DianaGray10
139 views31 slides
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates by
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesShapeBlue
252 views15 slides
Initiating and Advancing Your Strategic GIS Governance Strategy by
Initiating and Advancing Your Strategic GIS Governance StrategyInitiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance StrategySafe Software
176 views68 slides
DRBD Deep Dive - Philipp Reisner - LINBIT by
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBITShapeBlue
180 views21 slides
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue by
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueShapeBlue
138 views15 slides

Recently uploaded(20)

TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc170 views
Business Analyst Series 2023 - Week 4 Session 7 by DianaGray10
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7
DianaGray10139 views
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates by ShapeBlue
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates
ShapeBlue252 views
Initiating and Advancing Your Strategic GIS Governance Strategy by Safe Software
Initiating and Advancing Your Strategic GIS Governance StrategyInitiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance Strategy
Safe Software176 views
DRBD Deep Dive - Philipp Reisner - LINBIT by ShapeBlue
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue180 views
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue by ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue138 views
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava... by ShapeBlue
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
ShapeBlue145 views
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by ShapeBlue
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
ShapeBlue173 views
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by ShapeBlue
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue159 views
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... by ShapeBlue
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
ShapeBlue106 views
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda... by ShapeBlue
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
ShapeBlue161 views
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online by ShapeBlue
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
ShapeBlue221 views
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue by ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
ShapeBlue147 views
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue by ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue222 views
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT by ShapeBlue
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
ShapeBlue206 views
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool by ShapeBlue
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool
ShapeBlue123 views
The Power of Heat Decarbonisation Plans in the Built Environment by IES VE
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built Environment
IES VE79 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue135 views

Solid.js - następca Reacta?

  • 2. Whoami 1. Software developer @brainhub 2. Cat (Cheetos) father 3. Netflix lover 4. Football player @hstemplewski @hstemplewski
  • 3. Agenda 1. What the Solid is? 2. Quick overview 3. Solid vs React a. Components b. Performance c. Build size 4. Live coding (refactor react app to solid) 5. Is Solid gonna replace React?
  • 4. Disclaimer This presentation could include a lot of cat GIFs and memes, if you’re not ready, please leave this room or close your eyes and only listen.
  • 5. 1. What the Solid is? SolidJS is an open source, reactive declarative JavaScript library with an API similar to React. It was created by Ryan Carniato in 2018 and reached the stable v1.0 version in 2021. ➔ JSX Support In SolidJS, components are JavaScript functions that return JSX just like in React. ➔ Reactive Unlike React, SolidJS doesn't use a virtual DOM. Instead, templates are compiled down to real DOM nodes and updated with reactions. When state changes, only the code that depends on it will rerun. ➔ Blazingly fast In comparison to different JS libraries (not only React) Solid is faster than
  • 6. 2. Quick overview ➔ Components ➔ Reactivity ➔ State management
  • 7. Components Components in solid are more about creating boundaries, they’re just a functions which are doing nothing
  • 8. Special components ● For ● Show ● Switch/Match ● and much more https://www.solidjs.com/docs/latest/ap i#control-flow
  • 9. Like MobX, Vue and Svelte, Solid uses reactive variables, which are monitored for change. It allows us to not bother about dependencies array and react on every variable change. Reactivity
  • 10. Long story short, how reactivity works ● Getter - get value and return newest value, set subscribers ● Setter - set new value and run all subscribers which needs to update a value after ● Cleanup - it’s not included here, but we need to be sure we removed unnecessary subscribers ● This is simple example and it shouldn't be used as production code.
  • 11. State management in Solid is everywhere. As you create signal it may be everywhere in the app and whenever you will use it it will stay reactive. https://youtu.be/ZZ-a7B761Ds?t=2456 State management EXAMPLE !
  • 14. Comparison - effects Effects that developers create with createEffect run after rendering has completed and are mostly used for scheduling updates that interact with the DOM. If you want to modify the DOM earlier, use createRenderEffect.
  • 15. Comparison - general React Solid Components are connected with functionality. Components are just for creating “boundaries”. Need to pass explicitly dependencies and react on changes. Using reactivity it automagically reacts on changes. VDOM Not using VDOM, it’s compiled to JS Need to use external libraries for managing global state. It allows you to create state using built-in API, but still you can use external things. Quite big and slow Blazingly fast and small Vast community, great support Small community, limited support
  • 22. Trend
  • 23. Trend
  • 25. Is Solid gonna replace React? First of all it’s always worthy to try the new things, as a developers we cannot close our minds and rest on our laurels. Even if React will still stay strong and stay first choose for most developers do not be afraid to dig deeper into new solutions and ideas. Solid have a chance to change something, but amount of community, marketing and now not being enterprise solution not make it easier. Answering the question, I don’t think Solid will replace React, it owns a vast market, has big community support and is supported by huge company. Right now Solid is just an open-source library based on contributions.
  • 26. Need to check: ● https://www.youtube.com/watch?v=_ne2BsvFBH0&ab_channel=KevinGhadyani-JavaScript ● https://dev.to/ryansolid/building-a-reactive-library-from-scratch-1i0p ● https://dev.to/ryansolid/thinking-granular-how-is-solidjs-so-performant-4g37 ● https://levelup.gitconnected.com/finding-fine-grained-reactive-programming-89741994ddee ● https://github.com/solidjs/solid ● https://www.solidjs.com/docs/latest/api