Amazon has a presence in just about every state: Amazon stores, Whole
Foods markets, warehouses so they can get what you ordered in 1 or 2
days if you're willing to pay the extra shipping charge. Barnes and
Noble probably have at least one store in each state, so they are
(technically) bound by stupidstateX's laws.
IIRC the laws about banning books either (a) apply only to schools,
public libraries, and other government entities, or (b) apply only to
commerce -- selling the book.
But if you, who do not have any connection with state X, decide to make
the book available (by "lending" a Kindle or Nook copy), you have not
committed a crime in state stupidstateX.
You would be on slightly shakier ground if you were to advertise it as
available to residents of stupidstateX. Even then, though, there would
be the question of jurisdiction. You aren't in stupidstateX, so
stupidstateX's courts don't have jurisdiction over you. But maybe you
should be careful not to set foot in stupidstateX in the future.
Of course, all this ignores one key fact: those laws are unconstitutional:
> Congress shall make no law respecting an establishment of religion,
or prohibiting the free exercise thereof; or abridging the freedom of
speech, or of the press...
The one thing you need to be careful of is "obscenity", as defined by
the
https://en.wikipedia.org/wiki/Miller_test
One Callahanner (first name Frank) went to prison for that. He wrote a
very explicit story, and was lured into emailing it to an FBI agent. The
FBI then charged him with interstate transportation of obscenity, and
tried him in the place where the agent was located (and where
"contemporary community standards" were much stricter than where Frank
lived.
But that only applies to something that violates Federal laws (like
transmitting obscenity via the mail or electronic communication), not to
state laws.
--
I do so have a memory. It's backed up on DVD... somewhere...