简体   繁体   中英

How can I create a button to allow a user to publish a new tweet in my react app?

I've been doing some research as to how I can create a button that allows a user to publish a new tweet with its contents being that of a variable stored in state, but no luck coming up with anything other than embedding current tweets into the site.

Is anyone aware of any packages that can be installed/resources I can use to make this possible? Thank you!

Literally 2 minutes after creating this thread I found a solution.

For anyone in a similar situation:

https://saurabhnemade.github.io/react-twitter-embed/?path=/story/twitter-share-button--share-button-with-custom-placeholder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM