Hacker News new | ask | show | jobs
by endisneigh 1749 days ago
Yes, but then you must use React Native. What I’m describing is that you could use regular JavaScript to access native apis.

That way if you preferred Vue, Angular, Ember, Elm, etc you could use that.

1 comments

Well you can, but the point of React is to abstract the view from the platform, not much more.

You can use something like Solid or JSX lite to maintain standard components that are compatible with most of those frameworks and web components.

Whether the view is abstracted from the platform and whether you have native access to apis are separate issues.

Even if you use web components that doesn’t change the fact that web apps don’t have access to native apis without compilation.