Coordinating our documentation efforts #51928
Replies: 7 comments 9 replies
-
Thanks, Robert!
To be honest, I don't know either. In the WCEU workshop, I tried to compare it with React because I think for those who know React, it's quicker to make the mental connection when you understand that the Interactivity API is like using React but with a different syntax, instead of something entirely new. But for those who don't know React, it is something entirely new 🤷♂️ Maybe we can focus the documentation on those who don't know React, but add details for those who do know React. What do you think, @juanmaguitar? |
Beta Was this translation helpful? Give feedback.
-
As a newcomer to the Interactivity API, wanting to learn more, I'd find it useful to have a 'Getting Started' guide in place so people can start playing with it, and a list of use cases to generate interest and engagement. The movies app is great but I think a wider set of use cases would be beneficial to start to understand the full potential of this new API. I'm still only just diffing into it right now but if I can help with the getting started guide or any other docs then I'd be happy to help. |
Beta Was this translation helpful? Give feedback.
-
I think follow along tutorials for useful functionality not part of the core blocks but still within a blogging context could be great, for example an exit intent modal or a sticky table of content sidebar that updates the highlighted chapter based on the heading in view. This is stuff people want because it has business value and would be used right away. I think there's a lot of inspiration for types of interactive components within third party block libraries with interactive blocks. Performance minded users (early block editor adopters for example) are most likely interested in replacing a lot of those JQuery components that are still within a lot of block plugin libraries. YT is a a good resource to learn React or whatever, I wouldn't reinvent the wheel and try to teach React or Preact if you're not cut for teaching. Most likely there's already a better resource on YT for free. I think React is declarative/explicit enough to get the hang of it if folks follow along and build a bunch of things with it. I think having some components or functionality that people want or need for their day to day is more important. People will figure out the rest with some links to some good resources. I've learned JS and React back in 2017 out of curiosity about Zeit and NextJS, but went into the design, nocode and small business direction instead and forgot almost everything except HTML and CSS (and very basic JS) because I just didn't need it and therefore wasn't able to build a regular coding routine. But something like the interactivity API and interactive block plugins that would enhance my own block theme development could reignite my interest in coding and React. |
Beta Was this translation helpful? Give feedback.
-
Another important concept to teach is that people should never update the HTML manually. They should use always directives, and then mutate the state if they want to change the HTML. The Interactivity API follows the same principle as React: I thought this was going to be obvious, but apparently is not. Yesterday I saw a person using Of course, there are always exceptions to the rules, but those are minimal and should only be used when using directives + state is not possible (i.e., toggling a class of the |
Beta Was this translation helpful? Give feedback.
-
Hey folks, if you still want to help with the documentation, things are about to get in motion 🙂 First, @juanmaguitar is going to lead the documentation efforts and design the documentation structure. Second, he will open a new Tracking Issue that we can use to coordinate, divide tasks, know who's working on what, what needs to be reviewed and so on. And third: apart from that, he'll work on a Make Core post to share the progress of the Interactivity API proposal. It will likely include:
|
Beta Was this translation helpful? Give feedback.
-
Not sure where to ask this, but is anyone planning to talk about the Interactivity API at the Rochester Wordcamp at the end of September? If not, I was thinking I'd propose a talk. Obviously, I don't have the insider technical depth, but I have a very good understanding of what motivates the project. I was thinking of something partly talking about what you might want it for (fairly high level) and, at a fairly high level, how it's technically structured. Love to do it, but don't want to accidentally get in the way of someone who actually knows what they're talking about... ;-) |
Beta Was this translation helpful? Give feedback.
-
There's now an initial version of the documentation of the API 🎉 🎉 Feel free to open pull requests to improve any part of it, or even add other sections or files to the docs. @juanmaguitar also opened Tracking Issue to ease the coordination of the work: |
Beta Was this translation helpful? Give feedback.
-
EDIT: You can now go to the Documentation Tracking Issue to see the status of this work
Hi, I'm creating this thread as a place to exchange information about work we're doing around documenting the Interactivity API. That would include things like not duplicating effort, discussing how best to present key concepts, and so on.
As I write this, I'm by no means fully conversant with the Interactivity API, but I'm hoping to turn this to an advantage in that I can write from the point of view of someone who just answered (or was helped with an answer) by themselves.
By way of starting off, I'm wondering whether there needs to be some discussion (not sure where) about makes a modern declarative framework different from the traditional PHP backend of WordPress. It's true that almost all of this is built into Mario Santos's great API Proposal writeup, but it's written more toward an audience that already has some experience with something like React, someone who's developed dynamically rendered blocks, and someone who has at least an inkling what a "PHP directive" is, or what hydration is.
I may be wrong that there's a need for this (maybe directing someone to an overview of React or Preact would suffice?), but for the moment I plan to take a stab at this "So you want to figure out what the Interactivity API is all about..." document in the next few days and then hope to get feedback about what works and doesn't.
And I'd encourage anyone else who's working on documentation to use this thread as a coordination point!
Beta Was this translation helpful? Give feedback.
All reactions