News for hackers. Stuff that matters.
Re:Show HN: Plasmic — web design tool that plugs into React ... by ilkhan4 on Tuesday November 02, 2021 @12:01PM (#29083175)
Are there any plans to add more extensibility to the code components, e.g. showing a custom UI for setting properties? I think the whole concept of being able to bring in external React components is a big differentiator for Plasmic and something like that would enable a bunch of new use-cases around making it easier for non-devs to build stuff on it.
Re:Show HN: Plasmic — web design tool that plugs into React ... by yaaang on Tuesday November 02, 2021 @12:15PM (#29083373)
Yes - this is very much on the roadmap. Any specific UI you're thinking of?
Re:Show HN: Plasmic — web design tool that plugs into React ... by ilkhan4 on Tuesday November 02, 2021 @02:34PM (#29085529)
Well, I'm still feeling out the platform, but I'm tossing around some ideas for components like these:

- A generic GraphQL query component. It would be nice to be able to pop open an embedded GraphiQL UI to set up the query and maybe set variables.

- A generic "state" component that could have a list of state vars you want to track. The UI I'm envisioning would let you add a list of state vars (essentially wrapping `useState`) and their default values.

- An authorization component that could show/hide children based on a role or auth status. The UI would need to be able to select the role or user property to key off of.

Maybe these would be built into the platform itself in the future, but they could probably be done as components in the meantime.

Re:Show HN: Plasmic — web design tool that plugs into React ... by yaaang on Tuesday November 02, 2021 @03:19PM (#29086157)
Thanks, super helpful. These are 100% aligned with the use cases we're trying to support.