Yet another simple question; if I create a page and only want to import specific components from that page into my codebase, is that possible? I’m asking because I’m not sure how to deal with complicated functionality/React state when importing an entire page… I have several form fields and drag&drop components that all need to be handled correctly via React state… Thanks in advance!!!
@yang I decided to go the codegen
route and actually imported the page component. But, I’m not sure how to expose the onChange
function for each input…
I ran the plasmic sync --projects ...
command and it generated a folder with my components (I changed the path to plasmicComponents
in plasmic.json
).
Can you share a link to the project?
Sure!
Are you able to access it?
Your component defines a string prop called titleInput
, and passes this in as the value
to the title
input
In your PlasmicLoader code, you’re passing something into titleInput
I think you mean to override title
instead
You can unlink the value
from the titleInput
prop and just do this (you can play with this from the API Explorer)
Thank you!