Hacker News new | ask | show | jobs
by Tajnymag 1749 days ago
Could you please share the details? I don't know about a way to render the same template in the browser and nativescript.
1 comments

In my case, you basically just take some code like this:

    const renderEl = flex("UserList", [
      label("User", ["Alice"]),
      label("User", ["Bob"]),
    ]);
In NativeScript, you would have these functions create those types of UI elements. For web, they'd probably produce divs and spans.

Ofc, there will be certain elements that are native only, or require really special stuff to create.